Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, allocations: 110.6 kB / 17.33 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 209.8 kB / 18.27 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.639/1.639, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 65.83 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.004082/0.143, allocations: 1.702 MB / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1443, allocations: 0.5571 MB / 359.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.1444, allocations: 3.938 kB / 359.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.161e-05/0.1446, allocations: 11.92 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.1448, allocations: 7.938 kB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005972/0.1454, allocations: 63.88 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.1456, allocations: 63.78 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1458, allocations: 28.2 kB / 359.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.146, allocations: 31.91 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.1461, allocations: 31.78 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.1461, allocations: 4 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.641e-05/0.1462, allocations: 19.94 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.994e-05/0.1463, allocations: 19.92 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.516e-05/0.1464, allocations: 35.8 kB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.1466, allocations: 83.64 kB / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/0.1466, allocations: 0 / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.1466, allocations: 0 / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.1467, allocations: 0 / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007989/0.1475, allocations: 399.3 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.162e-05/0.1476, allocations: 8.031 kB / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.827e-05/0.1476, allocations: 42.73 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.1479, allocations: 28.73 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.1482, allocations: 201.4 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.1482, allocations: 384 / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.1482, allocations: 15.94 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.1486, allocations: 141 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.1487, allocations: 3.984 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1487, allocations: 0 / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1487, allocations: 0 / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.1488, allocations: 35.97 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.1495, allocations: 309.5 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002874/0.1498, allocations: 154.2 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.991e-05/0.1499, allocations: 37.8 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.1499, allocations: 4 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.1502, allocations: 63.39 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.1502, allocations: 0 / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003717/0.1506, allocations: 121.4 kB / 361.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.1507, allocations: 89.05 kB / 361.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.1508, allocations: 152 kB / 361.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.1509, allocations: 29.7 kB / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.1509, allocations: 92.14 kB / 361.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.151, allocations: 19.86 kB / 361.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.565e-05/0.1511, allocations: 25.72 kB / 361.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1512, allocations: 322.8 kB / 362 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.433e-05/0.1513, allocations: 19.98 kB / 362 MB, free: 9.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.23e-05/0.1514, allocations: 65.08 kB / 362.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.1516, allocations: 85.33 kB / 362.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1517, allocations: 0 / 362.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003546/0.152, allocations: 121.4 kB / 362.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.1521, allocations: 4 kB / 362.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.1521, allocations: 4 kB / 362.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.1521, allocations: 0 / 362.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.1523, allocations: 23.86 kB / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1523, allocations: 0 / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.1524, allocations: 4 kB / 362.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.1524, allocations: 4.156 kB / 362.3 MB, free: 8.742 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.1526, allocations: 141.3 kB / 362.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.43e-05/0.1527, allocations: 57.64 kB / 362.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.1527, allocations: 20.3 kB / 362.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1527, allocations: 7.969 kB / 362.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1527, allocations: 3.938 kB / 362.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1528, allocations: 0 / 362.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004578/0.1532, allocations: 334.6 kB / 362.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1532, allocations: 4 kB / 362.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.395e-05/0.1533, allocations: 19.86 kB / 362.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.1533, allocations: 4 kB / 362.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.1533, allocations: 3.938 kB / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1533, allocations: 0 / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1534, allocations: 0 / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003979/0.1538, allocations: 208.2 kB / 363.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.1539, allocations: 96.94 kB / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.1539, allocations: 0 / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.92e-05/0.154, allocations: 4 kB / 363.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.1541, allocations: 12.11 kB / 363.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.1541, allocations: 4 kB / 363.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.946e-05/0.1542, allocations: 111.2 kB / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.1545, allocations: 19.91 kB / 363.3 MB, free: 7.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009689/0.1554, allocations: 0.7639 MB / 364.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002732/0.1557, allocations: 71.84 kB / 364.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.1558, allocations: 4.375 kB / 364.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.776e-05/0.1559, allocations: 19.98 kB / 364.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005317/0.1564, allocations: 32.3 kB / 364.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.1589, allocations: 1.583 MB / 365.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.1593, allocations: 0.7041 MB / 366.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.735e-05/0.1594, allocations: 4.438 kB / 366.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.981e-05/0.1594, allocations: 23.42 kB / 366.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1594, allocations: 0 / 366.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.1738, allocations: 1.914 MB / 368.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/0.174, allocations: 239.3 kB / 368.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.259, allocations: 0 / 368.7 MB, free: 2.219 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches