Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009118/0.0009118, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004956/0.004956, allocations: 161.2 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8759/0.8759, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2231/0.2231, allocations: 34.25 MB / 295.7 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.761e-05, allocations: 5.234 kB / 443.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.1815/0.1816, allocations: 1.606 MB / 445 MB, free: 43.7 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007699/0.1823, allocations: 0.4907 MB / 445.5 MB, free: 43.56 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.584e-05/0.1824, allocations: 3.094 kB / 445.5 MB, free: 43.56 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.1825, allocations: 7.875 kB / 445.5 MB, free: 43.55 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.738e-05/0.1826, allocations: 13.56 kB / 445.6 MB, free: 43.55 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.1828, allocations: 42.48 kB / 445.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.1829, allocations: 79.27 kB / 445.7 MB, free: 43.53 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.1831, allocations: 22.5 kB / 445.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.862e-05/0.1831, allocations: 40.66 kB / 445.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.162e-05/0.1832, allocations: 23.8 kB / 445.8 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.1832, allocations: 5.469 kB / 445.8 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.1832, allocations: 9.719 kB / 445.8 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.1832, allocations: 21.19 kB / 445.8 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.82e-05/0.1833, allocations: 23.14 kB / 445.8 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.1834, allocations: 79.67 kB / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1834, allocations: 0 / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1834, allocations: 0 / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1834, allocations: 0 / 445.9 MB, free: 43.48 MB / 410.7 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.0004491/0.1839, allocations: 321.9 kB / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1839, allocations: 8.844 kB / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.6e-05/0.1839, allocations: 10.67 kB / 446.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.1842, allocations: 138.7 kB / 446.4 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1842, allocations: 5.219 kB / 446.4 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.1842, allocations: 11.66 kB / 446.4 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.1843, allocations: 81.36 kB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.1843, allocations: 3.141 kB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1843, allocations: 384 / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1843, allocations: 10.75 kB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.18e-05/0.1844, allocations: 37.08 kB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003845/0.1848, allocations: 277.9 kB / 446.8 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.793e-05/0.1849, allocations: 49.61 kB / 446.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.1849, allocations: 20.42 kB / 446.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.1849, allocations: 2.906 kB / 446.8 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/0.185, allocations: 62.64 kB / 446.9 MB, free: 42.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.185, allocations: 0 / 446.9 MB, free: 42.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001781/0.1852, allocations: 89.09 kB / 447 MB, free: 42.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.1852, allocations: 57.84 kB / 447.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.363e-05/0.1853, allocations: 121.2 kB / 447.2 MB, free: 42.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-06/0.1853, allocations: 25.7 kB / 447.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.1853, allocations: 113 kB / 447.3 MB, free: 42.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.1853, allocations: 18 kB / 447.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.1854, allocations: 21.62 kB / 447.3 MB, free: 42.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.86e-05/0.1854, allocations: 324.8 kB / 447.7 MB, free: 42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.771e-05/0.1854, allocations: 19.62 kB / 447.7 MB, free: 42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.318e-05/0.1854, allocations: 29.27 kB / 447.7 MB, free: 41.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.588e-05/0.1855, allocations: 53.03 kB / 447.8 MB, free: 41.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1855, allocations: 0 / 447.8 MB, free: 41.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001038/0.1856, allocations: 94.88 kB / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1856, allocations: 7.031 kB / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1856, allocations: 0 / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.1857, allocations: 2.594 kB / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.9e-05/0.1857, allocations: 8.719 kB / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1857, allocations: 2.812 kB / 447.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.767e-05/0.1858, allocations: 13.75 kB / 447.9 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-06/0.1858, allocations: 12.34 kB / 447.9 MB, free: 41.85 MB / 410.7 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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 5.805e-05/0.1858, allocations: 121.5 kB / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-06/0.1858, allocations: 5.719 kB / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.269e-05/0.1859, allocations: 12.44 kB / 448 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1859, allocations: 6.531 kB / 448 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1859, allocations: 0 / 448 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1859, allocations: 3.188 kB / 448 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/0.1861, allocations: 283.4 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1861, allocations: 2.953 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-05/0.1861, allocations: 10.33 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1861, allocations: 0 / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.1862, allocations: 0 / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1862, allocations: 0 / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1862, allocations: 6.984 kB / 448.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.1863, allocations: 194.2 kB / 448.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-06/0.1863, allocations: 10.06 kB / 448.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1863, allocations: 0 / 448.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.506e-05/0.1864, allocations: 2.969 kB / 448.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.1864, allocations: 25.19 kB / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.1864, allocations: 0 / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.676e-05/0.1864, allocations: 96.27 kB / 448.7 MB, free: 41.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1864, allocations: 0 / 448.7 MB, free: 41.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00015/0.1866, allocations: 17.34 kB / 448.7 MB, free: 41.2 MB / 410.7 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,fallingEdge.not_u,booleanPulse.pulseStart) * 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 8.031e-05/0.1867, allocations: 98.88 kB / 448.8 MB, free: 41.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.1868, allocations: 48.98 kB / 448.8 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1868, allocations: 0 / 448.8 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.702e-05/0.1868, allocations: 17.12 kB / 448.8 MB, free: 41.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.187, allocations: 15.78 kB / 448.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.1874, allocations: 218.3 kB / 449.1 MB, free: 40.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.935e-05/0.1874, allocations: 86.17 kB / 449.2 MB, free: 40.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.1875, allocations: 14.19 kB / 449.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1875, allocations: 3.938 kB / 449.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of Templates: time 0.001854/0.1893, allocations: 1.132 MB / 450.3 MB, free: 40.76 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.570423950441182]