Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 113.7 kB / 19.69 MB, free: 2.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 184.7 kB / 22.98 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 207.6 MB / 233.7 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2514/0.2514, allocations: 44.24 MB / 330.2 MB, free: 9.555 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 66.97 kB / 467.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1748, allocations: 61.04 MB / 0.5166 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003368/0.1782, allocations: 1.556 MB / 0.5181 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1794, allocations: 0.5307 MB / 0.5186 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.902e-05/0.1795, allocations: 3.938 kB / 0.5186 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.053e-05/0.1795, allocations: 11.92 kB / 0.5186 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.918e-05/0.1796, allocations: 11.86 kB / 0.5186 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.1799, allocations: 35.91 kB / 0.5187 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.18, allocations: 91.69 kB / 0.5188 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.1802, allocations: 15.97 kB / 0.5188 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1803, allocations: 31.92 kB / 0.5188 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1804, allocations: 47.77 kB / 0.5188 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.666e-05/0.1805, allocations: 12 kB / 0.5189 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.1805, allocations: 8 kB / 0.5189 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.962e-05/0.1805, allocations: 23.91 kB / 0.5189 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.743e-05/0.1806, allocations: 31.81 kB / 0.5189 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.1808, allocations: 83.58 kB / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1808, allocations: 0 / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1808, allocations: 0 / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1808, allocations: 0 / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008499/0.1816, allocations: 326.1 kB / 0.5193 GB, free: 4.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.1817, allocations: 8.031 kB / 0.5193 GB, free: 4.031 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.1817, allocations: 8.891 kB / 0.5193 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.1819, allocations: 122.4 kB / 0.5194 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1819, allocations: 4.359 kB / 0.5194 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.182, allocations: 12.38 kB / 0.5195 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.1822, allocations: 85.95 kB / 0.5195 GB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1822, allocations: 0 / 0.5195 GB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.1823, allocations: 8 kB / 0.5195 GB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1823, allocations: 0 / 0.5195 GB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.1824, allocations: 43.97 kB / 0.5196 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.1831, allocations: 299.7 kB / 0.5199 GB, free: 3.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.1834, allocations: 74.53 kB / 0.5199 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1835, allocations: 44.84 kB / 0.52 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1835, allocations: 0 / 0.52 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.1838, allocations: 103.7 kB / 0.5201 GB, free: 3.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.1838, allocations: 0 / 0.5201 GB, free: 3.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005036/0.1843, allocations: 197.5 kB / 0.5203 GB, free: 2.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.1843, allocations: 55.39 kB / 0.5203 GB, free: 2.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.1845, allocations: 121.8 kB / 0.5204 GB, free: 2.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.1845, allocations: 29.7 kB / 0.5205 GB, free: 2.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.1846, allocations: 96.36 kB / 0.5206 GB, free: 2.617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.71e-05/0.1847, allocations: 35.73 kB / 0.5206 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/0.1848, allocations: 38.09 kB / 0.5206 GB, free: 2.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1849, allocations: 322.8 kB / 0.5209 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.108e-05/0.185, allocations: 35.97 kB / 0.521 GB, free: 2.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.1852, allocations: 85.06 kB / 0.5211 GB, free: 2.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.1854, allocations: 121 kB / 0.5212 GB, free: 1.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1854, allocations: 4 kB / 0.5212 GB, free: 1.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002877/0.1857, allocations: 157.4 kB / 0.5213 GB, free: 1.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1857, allocations: 4 kB / 0.5213 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1857, allocations: 0 / 0.5213 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.1857, allocations: 4 kB / 0.5213 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1859, allocations: 27.86 kB / 0.5214 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.1859, allocations: 4.156 kB / 0.5214 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.491e-05/0.1859, allocations: 15.95 kB / 0.5214 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.1859, allocations: 4 kB / 0.5214 GB, free: 1.719 MB / 398.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: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001559/0.1861, allocations: 139.7 kB / 0.5215 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.1861, allocations: 7.953 kB / 0.5215 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.1862, allocations: 8.438 kB / 0.5215 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.1862, allocations: 7.938 kB / 0.5215 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.1862, allocations: 4 kB / 0.5215 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1862, allocations: 7.984 kB / 0.5216 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.1869, allocations: 409.5 kB / 0.5219 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.1869, allocations: 3.938 kB / 0.5219 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.954e-05/0.1869, allocations: 11.92 kB / 0.522 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.1869, allocations: 4 kB / 0.522 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.1869, allocations: 0 / 0.522 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1869, allocations: 0 / 0.522 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1869, allocations: 0 / 0.522 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.1873, allocations: 247.5 kB / 0.5222 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.383e-05/0.1873, allocations: 19.88 kB / 0.5222 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.1874, allocations: 4 kB / 0.5222 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1875, allocations: 7.984 kB / 0.5222 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1875, allocations: 11.98 kB / 0.5222 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.1876, allocations: 4 kB / 0.5222 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.1877, allocations: 91.27 kB / 0.5223 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1877, allocations: 7.938 kB / 0.5223 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000252/0.188, allocations: 20 kB / 0.5224 GB, free: 0.6445 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001496/0.1881, allocations: 107.4 kB / 0.5225 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003068/0.1884, allocations: 103.8 kB / 0.5226 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1884, allocations: 3.938 kB / 0.5226 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.1886, allocations: 43.91 kB / 0.5226 GB, free: 392 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1889, allocations: 20.58 kB / 0.5226 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007679/0.1896, allocations: 203.7 kB / 0.5228 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.1901, allocations: 0.6924 MB / 0.5235 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.741e-05/0.1902, allocations: 8.969 kB / 0.5235 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.1902, allocations: 15.44 kB / 0.5235 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1902, allocations: 0 / 0.5235 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Templates: time 0.004494/0.1947, allocations: 1.063 MB / 0.5246 GB, free: 14.33 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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: 5.457078357227147]