Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0009572/0.0009572, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.0009132/0.0009132, allocations: 170.2 kB / 25.61 MB, free: 8.539 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.8982/0.8982, allocations: 177.1 MB / 206 MB, free: 4.496 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.1432/0.1432, allocations: 34.27 MB / 296.9 MB, free: 13.94 MB / 282.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.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_4.1.0_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_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.478e-05, allocations: 6.25 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001452/0.001467, allocations: 1.564 MB / 380.8 MB, free: 21.87 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005726/0.002039, allocations: 0.5491 MB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.724e-05/0.002087, allocations: 0 / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.00211, allocations: 7.875 kB / 381.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.676e-05/0.002177, allocations: 11.81 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.002354, allocations: 51.81 kB / 381.5 MB, free: 21.24 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.571e-05/0.00245, allocations: 95.69 kB / 381.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.779e-05/0.002527, allocations: 11.98 kB / 381.6 MB, free: 21.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.002641, allocations: 71.75 kB / 381.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.002695, allocations: 31.89 kB / 381.7 MB, free: 21.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.00271, allocations: 8 kB / 381.7 MB, free: 21.03 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.297e-05/0.002743, allocations: 8 kB / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.002762, allocations: 27.89 kB / 381.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.002787, allocations: 23.98 kB / 381.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 9.142e-05/0.002878, allocations: 63.78 kB / 381.8 MB, free: 20.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.00288, allocations: 3.938 kB / 381.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.21e-07/0.002881, allocations: 0 / 381.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.002884, allocations: 4 kB / 381.8 MB, free: 20.9 MB / 314.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.0003416/0.003226, allocations: 436.3 kB / 382.2 MB, free: 20.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.72e-05/0.003253, allocations: 12.03 kB / 382.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.003343, allocations: 20.88 kB / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.003444, allocations: 132.4 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.003459, allocations: 4.375 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.003471, allocations: 12.36 kB / 382.4 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.988e-05/0.003571, allocations: 90.91 kB / 382.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.003577, allocations: 192 / 382.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.003585, allocations: 384 / 382.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.00359, allocations: 3.938 kB / 382.5 MB, free: 20.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.803e-05/0.003618, allocations: 19.92 kB / 382.5 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002426/0.003861, allocations: 288.3 kB / 382.8 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.035e-05/0.003941, allocations: 71 kB / 382.9 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.003963, allocations: 19.67 kB / 382.9 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.003976, allocations: 8 kB / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.976e-05/0.004046, allocations: 100.2 kB / 383 MB, free: 19.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 9.52e-07/0.004047, allocations: 0 / 383 MB, free: 19.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001734/0.00422, allocations: 141.7 kB / 383.1 MB, free: 19.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.144e-05/0.004241, allocations: 55.41 kB / 383.2 MB, free: 19.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.215e-05/0.004284, allocations: 178 kB / 383.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.004293, allocations: 33.7 kB / 383.4 MB, free: 19.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.213e-05/0.004316, allocations: 135.1 kB / 383.5 MB, free: 19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.00434, allocations: 43.67 kB / 383.6 MB, free: 18.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.004377, allocations: 47.28 kB / 383.6 MB, free: 18.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.965e-05/0.004417, allocations: 0.4962 MB / 384.1 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.004436, allocations: 11.98 kB / 384.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.306e-05/0.004469, allocations: 73.34 kB / 384.2 MB, free: 18.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.945e-05/0.004528, allocations: 94.34 kB / 384.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.00453, allocations: 0 / 384.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.899e-05/0.004629, allocations: 121.5 kB / 384.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.004639, allocations: 10.16 kB / 384.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.004644, allocations: 4 kB / 384.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-06/0.004651, allocations: 0 / 384.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/0.004719, allocations: 27.98 kB / 384.4 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.004723, allocations: 7.938 kB / 384.4 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.966e-05/0.004753, allocations: 11.94 kB / 384.5 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.00476, allocations: 8 kB / 384.5 MB, free: 17.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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 4.819e-05/0.004808, allocations: 170.5 kB / 384.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.004823, allocations: 11.95 kB / 384.6 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.934e-05/0.004842, allocations: 20.42 kB / 384.7 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.004843, allocations: 4 kB / 384.7 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.004845, allocations: 0 / 384.7 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.004848, allocations: 0 / 384.7 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.005053, allocations: 381.2 kB / 385 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.005054, allocations: 0 / 385 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.202e-05/0.005076, allocations: 11.98 kB / 385.1 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.005078, allocations: 0 / 385.1 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.005086, allocations: 12 kB / 385.1 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.005087, allocations: 3.938 kB / 385.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.005087, allocations: 0 / 385.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.005197, allocations: 275.8 kB / 385.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.855e-06/0.005205, allocations: 23.94 kB / 385.4 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.00522, allocations: 7.938 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5e-05/0.00527, allocations: 7.984 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.005295, allocations: 15.97 kB / 385.4 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.005309, allocations: 4 kB / 385.4 MB, free: 17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.972e-05/0.005329, allocations: 135.2 kB / 385.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005329, allocations: 0 / 385.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001552/0.005484, allocations: 20 kB / 385.5 MB, free: 16.84 MB / 314.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 5.245e-05/0.005537, allocations: 111.1 kB / 385.7 MB, free: 16.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.584e-05/0.005633, allocations: 67.58 kB / 385.7 MB, free: 16.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.01e-07/0.005633, allocations: 0 / 385.7 MB, free: 16.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.653e-05/0.00567, allocations: 51.58 kB / 385.8 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.005846, allocations: 12.75 kB / 385.8 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003312/0.006177, allocations: 203.7 kB / 386 MB, free: 16.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.118e-05/0.006198, allocations: 67.45 kB / 386 MB, free: 16.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.664e-05/0.006225, allocations: 16.97 kB / 386.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.006272, allocations: 78.2 kB / 386.1 MB, free: 16.19 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.006272, allocations: 0 / 386.1 MB, free: 16.19 MB / 314.7 MB Notification: Performance of Templates: time 0.002195/0.008467, allocations: 1.189 MB / 387.3 MB, free: 15.02 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.8232115460559726]