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.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.001255/0.001255, allocations: 80.05 kB / 20.72 MB, free: 3.766 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.001406/0.001406, allocations: 169.3 kB / 24.14 MB, free: 356 kB / 18.57 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 0.855/0.855, allocations: 158.6 MB / 186 MB, free: 2.758 MB / 170.7 MB " [Timeout remaining time 179] 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.1277/0.1277, allocations: 32.39 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] 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.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.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: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 299.1 MB, free: 2.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.258e-05/2.456e-05, allocations: 2.312 kB / 299.1 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002094/0.002118, allocations: 1.601 MB / 300.7 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007535/0.002872, allocations: 0.519 MB / 301.2 MB, free: 28 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.761e-05/0.00291, allocations: 4 kB / 301.2 MB, free: 24 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.002935, allocations: 11.81 kB / 301.2 MB, free: 12 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1242/0.1271, allocations: 15.03 kB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.1274, allocations: 33.05 kB / 301.3 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.1276, allocations: 88.83 kB / 301.4 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.1277, allocations: 10.22 kB / 301.4 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.1278, allocations: 57.7 kB / 301.4 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.977e-05/0.1279, allocations: 33.98 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.1279, allocations: 7.625 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.15e-05/0.1279, allocations: 7.594 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.1279, allocations: 24.02 kB / 301.5 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.464e-05/0.128, allocations: 25.47 kB / 301.5 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.1281, allocations: 59.45 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1281, allocations: 3.469 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1281, allocations: 0 / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.1281, allocations: 1.062 kB / 301.6 MB, free: 19.23 MB / 282.7 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.0003678/0.1285, allocations: 306.4 kB / 301.9 MB, free: 18.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.1285, allocations: 8.969 kB / 301.9 MB, free: 18.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.1286, allocations: 15.88 kB / 301.9 MB, free: 18.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.453e-05/0.1286, allocations: 107.5 kB / 302 MB, free: 18.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.1286, allocations: 8.25 kB / 302 MB, free: 18.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1286, allocations: 9.219 kB / 302 MB, free: 18.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1287, allocations: 80.98 kB / 302.1 MB, free: 18.81 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.1288, allocations: 192 / 302.1 MB, free: 18.81 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.1288, allocations: 6.359 kB / 302.1 MB, free: 18.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.1288, allocations: 6.25 kB / 302.1 MB, free: 18.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.195e-05/0.1288, allocations: 15.94 kB / 302.1 MB, free: 18.8 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002856/0.1291, allocations: 190.3 kB / 302.3 MB, free: 18.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.681e-05/0.1292, allocations: 55.41 kB / 302.4 MB, free: 18.63 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.32e-05/0.1292, allocations: 18.28 kB / 302.4 MB, free: 18.62 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1292, allocations: 4.469 kB / 302.4 MB, free: 18.62 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.955e-05/0.1293, allocations: 80.97 kB / 302.5 MB, free: 18.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.1293, allocations: 0 / 302.5 MB, free: 18.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001507/0.1295, allocations: 101.8 kB / 302.6 MB, free: 18.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.1295, allocations: 58.72 kB / 302.6 MB, free: 18.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.947e-05/0.1295, allocations: 123 kB / 302.8 MB, free: 18.37 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.1295, allocations: 33.62 kB / 302.8 MB, free: 18.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.881e-05/0.1296, allocations: 90.09 kB / 302.9 MB, free: 18.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.1296, allocations: 37.69 kB / 302.9 MB, free: 18.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.1296, allocations: 40.72 kB / 303 MB, free: 18.22 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.383e-05/0.1297, allocations: 321.8 kB / 303.3 MB, free: 17.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.155e-05/0.1297, allocations: 14.23 kB / 303.3 MB, free: 17.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-05/0.1297, allocations: 58.05 kB / 303.3 MB, free: 17.86 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.557e-05/0.1298, allocations: 94.36 kB / 303.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1298, allocations: 5.125 kB / 303.4 MB, free: 17.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000112/0.1299, allocations: 101 kB / 303.5 MB, free: 17.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.1299, allocations: 5.938 kB / 303.5 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1299, allocations: 1.719 kB / 303.6 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.13, allocations: 5.578 kB / 303.6 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.945e-05/0.13, allocations: 31.55 kB / 303.6 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.13, allocations: 6.047 kB / 303.6 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.988e-05/0.1301, allocations: 11.33 kB / 303.6 MB, free: 17.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.1301, allocations: 9.031 kB / 303.6 MB, free: 17.77 MB / 282.7 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 5.788e-05/0.1301, allocations: 131.8 kB / 303.7 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.1302, allocations: 10.5 kB / 303.8 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.275e-05/0.1302, allocations: 14.08 kB / 303.8 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1302, allocations: 1.219 kB / 303.8 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.1302, allocations: 8.031 kB / 303.8 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1302, allocations: 2.578 kB / 303.8 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.1304, allocations: 241.2 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1304, allocations: 3.906 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.724e-05/0.1304, allocations: 12.73 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1304, allocations: 5.125 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.1304, allocations: 2.672 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1304, allocations: 0 / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1304, allocations: 2.312 kB / 304 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.15e-05/0.1305, allocations: 181.5 kB / 304.2 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-06/0.1305, allocations: 10.92 kB / 304.2 MB, free: 17.31 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.1305, allocations: 7.453 kB / 304.2 MB, free: 17.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.226e-05/0.1306, allocations: 7.219 kB / 304.2 MB, free: 17.31 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.901e-05/0.1306, allocations: 11.48 kB / 304.3 MB, free: 17.31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1306, allocations: 3.625 kB / 304.3 MB, free: 17.31 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.504e-05/0.1306, allocations: 19.33 kB / 304.3 MB, free: 17.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1306, allocations: 0 / 304.3 MB, free: 17.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001487/0.1308, allocations: 21.97 kB / 304.3 MB, free: 17.3 MB / 282.7 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 6.8e-05/0.1309, allocations: 83.2 kB / 304.4 MB, free: 17.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.131, allocations: 70.84 kB / 304.4 MB, free: 17.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.131, allocations: 1.219 kB / 304.4 MB, free: 17.22 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.253e-05/0.131, allocations: 37 kB / 304.5 MB, free: 17.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.1312, allocations: 15.97 kB / 304.5 MB, free: 17.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.1316, allocations: 208 kB / 304.7 MB, free: 17.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.744e-05/0.1316, allocations: 63.03 kB / 304.8 MB, free: 17 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.029e-05/0.1317, allocations: 17.09 kB / 304.8 MB, free: 16.99 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.1317, allocations: 61.89 kB / 304.8 MB, free: 16.95 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1317, allocations: 0 / 304.8 MB, free: 16.95 MB / 282.7 MB Notification: Performance of Templates: time 0.002855/0.1346, allocations: 1.098 MB / 305.9 MB, free: 16.86 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7866533333435655]