Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00176/0.00176, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001927/0.001927, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.236/0.236, allocations: 34.27 MB / 294.8 MB, free: 14.51 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.865e-06/2.865e-06, allocations: 0 / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.546e-05/3.832e-05, allocations: 2.281 kB / 442.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003377/0.003416, allocations: 1.531 MB / 444.2 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.004609, allocations: 0.522 MB / 444.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.533e-05/0.004694, allocations: 4 kB / 444.7 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.00473, allocations: 7.922 kB / 444.7 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.004832, allocations: 11.88 kB / 444.7 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.005144, allocations: 59.73 kB / 444.8 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.00532, allocations: 91.7 kB / 444.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.005427, allocations: 8 kB / 444.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.005626, allocations: 67.8 kB / 444.9 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.946e-05/0.005715, allocations: 27.95 kB / 445 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.00574, allocations: 8 kB / 445 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.515e-05/0.005795, allocations: 15.94 kB / 445 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.708e-05/0.005833, allocations: 27.84 kB / 445 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.561e-05/0.005888, allocations: 27.91 kB / 445 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.006078, allocations: 83.75 kB / 445.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.006082, allocations: 0 / 445.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.006083, allocations: 4 kB / 445.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.006088, allocations: 3.938 kB / 445.1 MB, free: 2.797 MB / 366.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.0007331/0.006821, allocations: 330 kB / 445.5 MB, free: 2.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.006864, allocations: 8.031 kB / 445.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.00703, allocations: 20.88 kB / 445.5 MB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.007276, allocations: 133.6 kB / 445.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.007295, allocations: 12.38 kB / 445.6 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.007312, allocations: 4.375 kB / 445.6 MB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.007544, allocations: 94.02 kB / 445.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.007556, allocations: 192 / 445.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.007569, allocations: 4.312 kB / 445.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.007577, allocations: 7.938 kB / 445.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.007731, allocations: 51.95 kB / 445.8 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.008271, allocations: 252.5 kB / 446 MB, free: 1.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.008513, allocations: 90.47 kB / 446.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.008619, allocations: 40.84 kB / 446.2 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.008646, allocations: 0 / 446.2 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.008872, allocations: 107.3 kB / 446.3 MB, free: 1.555 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.008874, allocations: 0 / 446.3 MB, free: 1.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005392/0.009413, allocations: 193.6 kB / 446.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.009484, allocations: 59.41 kB / 446.5 MB, free: 1.289 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.009613, allocations: 125.8 kB / 446.6 MB, free: 1.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.009649, allocations: 33.7 kB / 446.7 MB, free: 1.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.009721, allocations: 88.36 kB / 446.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.852e-05/0.009779, allocations: 43.73 kB / 446.8 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.00985, allocations: 37.7 kB / 446.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.01002, allocations: 322.8 kB / 447.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.01013, allocations: 35.98 kB / 447.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.01027, allocations: 83.38 kB / 447.3 MB, free: 496 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.01051, allocations: 120.2 kB / 447.4 MB, free: 360 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.01052, allocations: 4 kB / 447.4 MB, free: 356 kB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000308/0.01083, allocations: 165.3 kB / 447.6 MB, free: 188 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.01084, allocations: 6.344 kB / 447.6 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.01085, allocations: 224 / 447.6 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.01087, allocations: 8.125 kB / 447.6 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.011, allocations: 27.86 kB / 447.6 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.011, allocations: 0 / 447.6 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.384e-05/0.01108, allocations: 19.89 kB / 447.6 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.01109, allocations: 4 kB / 447.6 MB, free: 124 kB / 366.1 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 0.2713/0.2824, allocations: 128.3 kB / 447.7 MB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.976e-05/0.2824, allocations: 8.016 kB / 447.7 MB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.2825, allocations: 14.59 kB / 447.8 MB, free: 19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2825, allocations: 2.25 kB / 447.8 MB, free: 19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2825, allocations: 6.516 kB / 447.8 MB, free: 19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2825, allocations: 1.766 kB / 447.8 MB, free: 19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005881/0.2831, allocations: 386.1 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2831, allocations: 1.062 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.431e-05/0.2832, allocations: 10.17 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.2832, allocations: 4.656 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.2832, allocations: 5.344 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.2832, allocations: 4.844 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.2832, allocations: 0.5625 kB / 448.2 MB, free: 18.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.2835, allocations: 264 kB / 448.4 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.616e-05/0.2835, allocations: 10.61 kB / 448.4 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.2835, allocations: 7.188 kB / 448.5 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2837, allocations: 15.44 kB / 448.5 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.2837, allocations: 9.406 kB / 448.5 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.2837, allocations: 5.312 kB / 448.5 MB, free: 18.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.987e-05/0.2838, allocations: 93.61 kB / 448.6 MB, free: 18.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2838, allocations: 1.438 kB / 448.6 MB, free: 18.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.2841, allocations: 22.17 kB / 448.6 MB, free: 18.57 MB / 366.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 9.764e-05/0.2842, allocations: 103.1 kB / 448.7 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.2845, allocations: 110.5 kB / 448.8 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2845, allocations: 0 / 448.8 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.2846, allocations: 50 kB / 448.9 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.2849, allocations: 17.73 kB / 448.9 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004541/0.2853, allocations: 201.4 kB / 449.1 MB, free: 18.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.394e-05/0.2854, allocations: 77.27 kB / 449.1 MB, free: 18.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.468e-05/0.2855, allocations: 13.08 kB / 449.2 MB, free: 18.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/0.2855, allocations: 19.5 kB / 449.2 MB, free: 18.27 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2855, allocations: 0 / 449.2 MB, free: 18.27 MB / 366.1 MB Notification: Performance of Templates: time 0.004273/0.2898, allocations: 1.066 MB / 450.2 MB, free: 18.19 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.002532389014959]