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.0006851/0.0006851, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009844/0.001669, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.0006679/0.0006679, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008692/0.001537, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 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.8115/0.8115, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1405/0.9519, allocations: 49.51 MB / 220.7 MB, free: 1.352 MB / 218.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.36 MB / 253.8 MB, free: 220 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02101/0.1561, allocations: 12.31 MB / 266.1 MB, free: 3.867 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.282e-06/1.282e-06, allocations: 3.938 kB / 267.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.539e-05/1.667e-05, allocations: 2.312 kB / 267.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001775/0.001791, allocations: 1.604 MB / 269 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005458/0.002337, allocations: 0.5346 MB / 269.5 MB, free: 404 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.438e-05/0.002372, allocations: 0 / 269.5 MB, free: 404 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.215e-05/0.002394, allocations: 7.875 kB / 269.5 MB, free: 396 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.545e-05/0.002439, allocations: 19.78 kB / 269.5 MB, free: 376 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001097/0.002549, allocations: 39.83 kB / 269.6 MB, free: 336 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.004e-05/0.002639, allocations: 87.7 kB / 269.7 MB, free: 248 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.49e-05/0.002714, allocations: 7.984 kB / 269.7 MB, free: 240 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.002833, allocations: 75.81 kB / 269.8 MB, free: 164 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.784e-05/0.002901, allocations: 27.91 kB / 269.8 MB, free: 136 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.002922, allocations: 4 kB / 269.8 MB, free: 132 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.002935, allocations: 8 kB / 269.8 MB, free: 124 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.369e-05/0.002958, allocations: 15.94 kB / 269.8 MB, free: 108 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.828e-05/0.002987, allocations: 19.94 kB / 269.8 MB, free: 88 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.025e-05/0.003077, allocations: 55.75 kB / 269.9 MB, free: 32 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.003086, allocations: 0 / 269.9 MB, free: 32 kB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.003087, allocations: 0 / 269.9 MB, free: 32 kB / 266.7 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.003095, allocations: 0 / 269.9 MB, free: 32 kB / 266.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.000435/0.00353, allocations: 320.5 kB / 270.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.659e-05/0.003556, allocations: 8.031 kB / 270.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.00359, allocations: 16.92 kB / 270.2 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.425e-05/0.003664, allocations: 117.7 kB / 270.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.003682, allocations: 8.312 kB / 270.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.003697, allocations: 12.38 kB / 270.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.003806, allocations: 74.91 kB / 270.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.003814, allocations: 192 / 270.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.003823, allocations: 16.34 kB / 270.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.003829, allocations: 3.938 kB / 270.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.47e-05/0.003854, allocations: 12 kB / 270.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002565/0.00411, allocations: 180.3 kB / 270.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.578e-05/0.004196, allocations: 54.48 kB / 270.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.004219, allocations: 20.84 kB / 270.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.004236, allocations: 4 kB / 270.7 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.625e-05/0.004323, allocations: 75.48 kB / 270.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.004325, allocations: 4 kB / 270.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001424/0.004467, allocations: 105.5 kB / 270.9 MB, free: 14.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.004499, allocations: 51.41 kB / 270.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.643e-05/0.004555, allocations: 134.8 kB / 271.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.004569, allocations: 29.7 kB / 271.1 MB, free: 14.67 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.549e-05/0.004594, allocations: 88.36 kB / 271.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.004624, allocations: 39.7 kB / 271.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.00466, allocations: 37.69 kB / 271.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.672e-05/0.004727, allocations: 326.8 kB / 271.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.004744, allocations: 12 kB / 271.6 MB, free: 14.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.903e-05/0.004783, allocations: 61.12 kB / 271.7 MB, free: 14.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.972e-05/0.004853, allocations: 92.91 kB / 271.7 MB, free: 13.97 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.004855, allocations: 0 / 271.7 MB, free: 13.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.977e-05/0.004954, allocations: 101.5 kB / 271.8 MB, free: 13.87 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.004968, allocations: 4 kB / 271.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.004973, allocations: 8.156 kB / 271.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.004987, allocations: 3.984 kB / 271.9 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.591e-05/0.005073, allocations: 27.94 kB / 271.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.00508, allocations: 11.97 kB / 271.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.99e-05/0.00511, allocations: 15.95 kB / 271.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.005119, allocations: 7.938 kB / 271.9 MB, free: 13.79 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 7.425e-05/0.005193, allocations: 131.7 kB / 272.1 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.005208, allocations: 11.98 kB / 272.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.013e-05/0.005228, allocations: 8.438 kB / 272.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.00523, allocations: 4 kB / 272.1 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.005232, allocations: 4 kB / 272.1 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.005237, allocations: 3.984 kB / 272.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002188/0.005456, allocations: 250.6 kB / 272.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.005457, allocations: 0 / 272.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.36e-05/0.005491, allocations: 8 kB / 272.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-06/0.0055, allocations: 11.94 kB / 272.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.005503, allocations: 7.984 kB / 272.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.005512, allocations: 7.984 kB / 272.4 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.005513, allocations: 0 / 272.4 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.005514, allocations: 0 / 272.4 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001051/0.005619, allocations: 175.3 kB / 272.5 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.005636, allocations: 12 kB / 272.5 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.073e-05/0.005687, allocations: 7.984 kB / 272.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.005715, allocations: 7.984 kB / 272.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.005729, allocations: 7.938 kB / 272.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.981e-05/0.005749, allocations: 20.83 kB / 272.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005749, allocations: 0 / 272.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001464/0.005895, allocations: 27.94 kB / 272.6 MB, free: 13.05 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 7.899e-05/0.005974, allocations: 76.41 kB / 272.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001165/0.006091, allocations: 81.02 kB / 272.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.006097, allocations: 4 kB / 272.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.776e-05/0.006145, allocations: 40.77 kB / 272.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.00633, allocations: 75.39 kB / 272.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.007, allocations: 201.2 kB / 273.1 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.384e-05/0.007034, allocations: 59.36 kB / 273.1 MB, free: 12.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.105e-05/0.007065, allocations: 13.44 kB / 273.2 MB, free: 12.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.335e-05/0.007128, allocations: 71.36 kB / 273.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of SimCode: time 8.11e-07/0.007129, allocations: 0 / 273.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of Templates: time 0.002684/0.009813, allocations: 1.124 MB / 274.4 MB, free: 11.24 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.43342422042042]