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.0009713/0.0009713, allocations: 95.31 kB / 20.43 MB, free: 4.137 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.0009722/0.0009722, allocations: 165 kB / 23.8 MB, free: 0.7695 MB / 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.8892/0.8892, allocations: 158.6 MB / 185.7 MB, free: 2.922 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.1351/0.1351, allocations: 32.37 MB / 270.4 MB, free: 14.57 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.974e-06/1.974e-06, allocations: 0 / 347.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.87e-05/3.068e-05, allocations: 10.19 kB / 347.7 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001808/0.001838, allocations: 1.563 MB / 349.2 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006167/0.002455, allocations: 0.5269 MB / 349.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.087e-05/0.002496, allocations: 0 / 349.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.002533, allocations: 7.875 kB / 349.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.18e-05/0.002615, allocations: 11.88 kB / 349.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.002808, allocations: 47.75 kB / 349.8 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.182e-05/0.002889, allocations: 91.69 kB / 349.9 MB, free: 7.195 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.495e-05/0.002984, allocations: 4 kB / 349.9 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.003098, allocations: 59.88 kB / 350 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.99e-05/0.003157, allocations: 27.97 kB / 350 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.003177, allocations: 7.938 kB / 350 MB, free: 7.098 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.108e-05/0.003188, allocations: 8 kB / 350 MB, free: 7.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.47e-05/0.003213, allocations: 15.97 kB / 350 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.003249, allocations: 27.91 kB / 350 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.003353, allocations: 63.73 kB / 350.1 MB, free: 6.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.003356, allocations: 4 kB / 350.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.003357, allocations: 0 / 350.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.003362, allocations: 0 / 350.1 MB, free: 6.98 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.0004587/0.003821, allocations: 432.3 kB / 350.5 MB, free: 6.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.003859, allocations: 8.031 kB / 350.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.003903, allocations: 12.89 kB / 350.6 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.198e-05/0.003985, allocations: 124.5 kB / 350.7 MB, free: 6.355 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.004006, allocations: 4.375 kB / 350.7 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.004023, allocations: 12.31 kB / 350.7 MB, free: 6.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.004154, allocations: 82.91 kB / 350.8 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.004167, allocations: 4.188 kB / 350.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.004179, allocations: 384 / 350.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.00419, allocations: 7.938 kB / 350.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.633e-05/0.004237, allocations: 19.98 kB / 350.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.004568, allocations: 303.7 kB / 351.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.004674, allocations: 74.91 kB / 351.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.561e-05/0.004709, allocations: 27.67 kB / 351.2 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.004731, allocations: 4 kB / 351.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.636e-05/0.004818, allocations: 88.95 kB / 351.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.193e-06/0.004819, allocations: 4 kB / 351.3 MB, free: 5.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.000231/0.00505, allocations: 149.5 kB / 351.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.005073, allocations: 55.41 kB / 351.5 MB, free: 5.441 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.544e-05/0.005128, allocations: 177.9 kB / 351.7 MB, free: 5.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.00514, allocations: 33.7 kB / 351.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.005169, allocations: 139.1 kB / 351.8 MB, free: 5.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.005198, allocations: 35.73 kB / 351.9 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.005233, allocations: 35.38 kB / 351.9 MB, free: 4.992 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.005274, allocations: 0.4962 MB / 352.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.002e-05/0.005304, allocations: 15.98 kB / 352.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.766e-05/0.005351, allocations: 90.03 kB / 352.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.79e-05/0.005439, allocations: 110 kB / 352.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.005442, allocations: 0 / 352.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001277/0.00557, allocations: 137.6 kB / 352.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.005586, allocations: 8.156 kB / 352.8 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.005592, allocations: 4 kB / 352.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.005609, allocations: 4 kB / 352.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.253e-05/0.005692, allocations: 27.92 kB / 352.8 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.005697, allocations: 0 / 352.8 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.005727, allocations: 11.94 kB / 352.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.005736, allocations: 8 kB / 352.8 MB, free: 4.02 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.771e-05/0.005794, allocations: 178.4 kB / 353 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.005807, allocations: 11.95 kB / 353 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.005834, allocations: 16.42 kB / 353 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.005836, allocations: 4 kB / 353 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.005839, allocations: 0 / 353 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.005842, allocations: 4 kB / 353 MB, free: 3.801 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.006094, allocations: 415.5 kB / 353.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.006095, allocations: 4 kB / 353.4 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.768e-05/0.006123, allocations: 7.938 kB / 353.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.006125, allocations: 0 / 353.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.006135, allocations: 11.98 kB / 353.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.006136, allocations: 0 / 353.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.006137, allocations: 0 / 353.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.00627, allocations: 283.8 kB / 353.7 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.716e-06/0.006278, allocations: 19.83 kB / 353.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.006296, allocations: 7.984 kB / 353.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.561e-05/0.006351, allocations: 8 kB / 353.8 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.006391, allocations: 11.92 kB / 353.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.006406, allocations: 7.984 kB / 353.8 MB, free: 2.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.44e-05/0.00643, allocations: 135.1 kB / 353.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00643, allocations: 0 / 353.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001575/0.006588, allocations: 23.98 kB / 353.9 MB, free: 2.824 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.618e-05/0.006654, allocations: 99.91 kB / 354 MB, free: 2.715 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.00678, allocations: 83.95 kB / 354.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.006782, allocations: 0 / 354.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.553e-05/0.006827, allocations: 45.86 kB / 354.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.007019, allocations: 11.98 kB / 354.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004482/0.007468, allocations: 209.6 kB / 354.4 MB, free: 2.336 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.64e-05/0.007494, allocations: 63.3 kB / 354.4 MB, free: 2.254 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.586e-05/0.00752, allocations: 17.28 kB / 354.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.252e-05/0.007552, allocations: 20.5 kB / 354.5 MB, free: 2.219 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007553, allocations: 0 / 354.5 MB, free: 2.219 MB / 282.7 MB Notification: Performance of Templates: time 0.002389/0.009941, allocations: 1.042 MB / 355.5 MB, free: 1.195 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 -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: 3.07133488310501]