Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001943/0.001943, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002268/0.002268, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 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 1.576/1.576, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3359/0.3359, allocations: 32.8 MB / 293.9 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.034e-05/1.034e-05, allocations: 0 / 375.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.581e-05/4.615e-05, allocations: 6.25 kB / 375.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003393/0.003439, allocations: 1.541 MB / 376.8 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.004574, allocations: 0.5221 MB / 377.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.166e-05/0.004636, allocations: 0 / 377.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.744e-05/0.004673, allocations: 7.922 kB / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.294e-05/0.004766, allocations: 11.88 kB / 377.3 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.00505, allocations: 55.73 kB / 377.4 MB, free: 2.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.005239, allocations: 95.64 kB / 377.5 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.005353, allocations: 7.984 kB / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.005557, allocations: 67.81 kB / 377.5 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.923e-05/0.005647, allocations: 35.89 kB / 377.6 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.005673, allocations: 8 kB / 377.6 MB, free: 2.609 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.00572, allocations: 8 kB / 377.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.005752, allocations: 23.91 kB / 377.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.074e-05/0.005813, allocations: 31.91 kB / 377.7 MB, free: 2.547 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.006011, allocations: 83.75 kB / 377.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.006014, allocations: 0 / 377.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.006017, allocations: 4 kB / 377.7 MB, free: 2.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.006022, allocations: 0 / 377.7 MB, free: 2.461 MB / 346.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.000776/0.006798, allocations: 334 kB / 378.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.006837, allocations: 8.031 kB / 378.1 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.007018, allocations: 24.88 kB / 378.1 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.00727, allocations: 133.7 kB / 378.2 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.007295, allocations: 8.375 kB / 378.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.007314, allocations: 12.31 kB / 378.2 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.007542, allocations: 90.06 kB / 378.3 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.007552, allocations: 8.188 kB / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.007567, allocations: 384 / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.007574, allocations: 3.938 kB / 378.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.007721, allocations: 47.97 kB / 378.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.008308, allocations: 264.3 kB / 378.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.008546, allocations: 82.55 kB / 378.7 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.008652, allocations: 36.83 kB / 378.8 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.008678, allocations: 8 kB / 378.8 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.008904, allocations: 103.4 kB / 378.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.008905, allocations: 0 / 378.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005485/0.009454, allocations: 201.5 kB / 379.1 MB, free: 1.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.009517, allocations: 59.39 kB / 379.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.009641, allocations: 117.8 kB / 379.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.009673, allocations: 29.7 kB / 379.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.009758, allocations: 96.41 kB / 379.4 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.009808, allocations: 39.69 kB / 379.4 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.009877, allocations: 37.72 kB / 379.4 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.01007, allocations: 318.8 kB / 379.8 MB, free: 280 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.01018, allocations: 43.97 kB / 379.8 MB, free: 236 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.01032, allocations: 83.14 kB / 379.9 MB, free: 140 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.01058, allocations: 128.3 kB / 380 MB, free: 15.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.01058, allocations: 4.219 kB / 380 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003341/0.01091, allocations: 160.2 kB / 380.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.01093, allocations: 11.94 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.01094, allocations: 0 / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.01096, allocations: 4 kB / 380.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.01108, allocations: 23.98 kB / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.01109, allocations: 128 / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.843e-05/0.01116, allocations: 15.94 kB / 380.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.01118, allocations: 12 kB / 380.2 MB, free: 15.76 MB / 362.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 0.0001426/0.01132, allocations: 131.7 kB / 380.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/0.01135, allocations: 11.95 kB / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.01139, allocations: 16.41 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.01139, allocations: 4 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.0114, allocations: 0 / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.0114, allocations: 0 / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006243/0.01203, allocations: 394 kB / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01203, allocations: 4 kB / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.993e-05/0.01208, allocations: 4 kB / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.01208, allocations: 0 / 380.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.0121, allocations: 7.984 kB / 380.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.0121, allocations: 4 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.0121, allocations: 0 / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.0125, allocations: 267.3 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.01251, allocations: 7.953 kB / 381.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.01254, allocations: 7.984 kB / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.01267, allocations: 15.98 kB / 381.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.01272, allocations: 15.92 kB / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.885e-05/0.01274, allocations: 4 kB / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.003e-05/0.01281, allocations: 91.27 kB / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01281, allocations: 0 / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002523/0.01306, allocations: 24 kB / 381.2 MB, free: 14.7 MB / 362.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 0.0001227/0.01318, allocations: 99.19 kB / 381.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002874/0.01347, allocations: 115.9 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01347, allocations: 3.938 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.0136, allocations: 47.77 kB / 381.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.01388, allocations: 16.75 kB / 381.5 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.01434, allocations: 216.7 kB / 381.7 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.597e-05/0.01443, allocations: 75.33 kB / 381.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.785e-05/0.01447, allocations: 17.16 kB / 381.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.01453, allocations: 16.5 kB / 381.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01453, allocations: 0 / 381.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of Templates: time 0.004431/0.01896, allocations: 1.073 MB / 382.9 MB, free: 13 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 4.795827408088371]