Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001507/0.001507, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00174/0.00174, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2887/0.2887, allocations: 46.11 MB / 344.2 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002203, allocations: 85 kB / 417.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1712, allocations: 62.46 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003537/0.1748, allocations: 1.616 MB / 481.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1759, allocations: 0.5026 MB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.378e-05/0.176, allocations: 0 / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.1762, allocations: 15.86 kB / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.125e-05/0.1763, allocations: 11.88 kB / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.1765, allocations: 35.91 kB / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.1767, allocations: 83.75 kB / 482.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.1768, allocations: 24.22 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.922e-05/0.1769, allocations: 35.8 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.123e-05/0.177, allocations: 27.86 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.177, allocations: 8 kB / 482.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.729e-05/0.177, allocations: 11.94 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.1771, allocations: 15.92 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.1771, allocations: 39.78 kB / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.1773, allocations: 75.95 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1773, allocations: 0 / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1773, allocations: 0 / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.1773, allocations: 0 / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007123/0.1781, allocations: 387.3 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.1781, allocations: 12.03 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.1782, allocations: 16.75 kB / 483 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.1784, allocations: 192.2 kB / 483.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.1785, allocations: 12.36 kB / 483.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.1785, allocations: 8.375 kB / 483.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.1787, allocations: 73.98 kB / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1787, allocations: 0 / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1787, allocations: 4 kB / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.1787, allocations: 4 kB / 483.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.753e-05/0.1788, allocations: 31.92 kB / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006516/0.1795, allocations: 356.5 kB / 483.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.1796, allocations: 54.48 kB / 483.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.434e-05/0.1796, allocations: 12.89 kB / 483.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.1797, allocations: 4 kB / 483.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.1799, allocations: 71.42 kB / 483.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1799, allocations: 3.938 kB / 483.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002504/0.1801, allocations: 97.45 kB / 483.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.1802, allocations: 51.41 kB / 484 MB, free: 1.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.1804, allocations: 136 kB / 484.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1804, allocations: 29.7 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.974e-05/0.1805, allocations: 100 kB / 484.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.1805, allocations: 23.88 kB / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.005e-05/0.1806, allocations: 29.7 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1807, allocations: 318.8 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.1808, allocations: 15.98 kB / 484.6 MB, free: 476 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-05/0.1808, allocations: 38.56 kB / 484.6 MB, free: 428 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.61e-05/0.1809, allocations: 54.52 kB / 484.7 MB, free: 364 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1809, allocations: 0 / 484.7 MB, free: 364 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001361/0.1811, allocations: 89.72 kB / 484.8 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1811, allocations: 4 kB / 484.8 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1811, allocations: 3.938 kB / 484.8 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.1812, allocations: 7.938 kB / 484.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.042e-05/0.1812, allocations: 7.938 kB / 484.8 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1812, allocations: 7.984 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.159e-05/0.1813, allocations: 7.969 kB / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.1813, allocations: 4.391 kB / 484.8 MB, free: 224 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.000117/0.1814, allocations: 124.4 kB / 485 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.1815, allocations: 7.906 kB / 485 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.1815, allocations: 16.64 kB / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1815, allocations: 0 / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1815, allocations: 4 kB / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1815, allocations: 0 / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003921/0.1819, allocations: 358.4 kB / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.182, allocations: 0 / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.638e-05/0.182, allocations: 4 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.182, allocations: 0 / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.182, allocations: 4 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.182, allocations: 0 / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.1821, allocations: 4 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.1823, allocations: 195.3 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.1824, allocations: 85 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.1824, allocations: 8 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.1825, allocations: 8 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.1825, allocations: 7.984 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.1826, allocations: 4 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.786e-05/0.1826, allocations: 103.3 kB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1827, allocations: 0 / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.1829, allocations: 23.89 kB / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.000114/0.183, allocations: 91.25 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001551/0.1832, allocations: 55.91 kB / 485.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1832, allocations: 0 / 485.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.359e-05/0.1832, allocations: 16 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.1836, allocations: 26.2 kB / 486 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005101/0.1841, allocations: 202.6 kB / 486.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1844, allocations: 0.7002 MB / 486.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.401e-05/0.1845, allocations: 4.438 kB / 486.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.246e-05/0.1845, allocations: 15.38 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1845, allocations: 0 / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of Templates: time 0.004014/0.1885, allocations: 0.9269 MB / 487.8 MB, free: 13.11 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches