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.002374/0.002374, allocations: 91.62 kB / 20.96 MB, free: 3.461 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.002671/0.002671, allocations: 161.3 kB / 24.27 MB, free: 156 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.545/1.545, allocations: 177.1 MB / 204.6 MB, free: 5.594 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.3499/0.3499, allocations: 32.8 MB / 293.9 MB, free: 1.203 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.844e-06/1.844e-06, allocations: 0 / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.265e-05/3.45e-05, allocations: 2.312 kB / 375.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003113/0.003147, allocations: 1.549 MB / 376.8 MB, free: 3.438 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.004386, allocations: 0.5377 MB / 377.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.691e-05/0.004452, allocations: 0 / 377.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.019e-05/0.004493, allocations: 7.875 kB / 377.3 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.0046, allocations: 11.86 kB / 377.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002946/0.004895, allocations: 51.81 kB / 377.4 MB, free: 2.824 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.005081, allocations: 91.69 kB / 377.5 MB, free: 2.734 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.005198, allocations: 12 kB / 377.5 MB, free: 2.723 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.005416, allocations: 71.69 kB / 377.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.995e-05/0.005506, allocations: 35.94 kB / 377.6 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.005531, allocations: 4 kB / 377.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.803e-05/0.005579, allocations: 12 kB / 377.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.521e-05/0.005614, allocations: 23.91 kB / 377.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.005669, allocations: 23.92 kB / 377.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.005858, allocations: 87.73 kB / 377.8 MB, free: 2.469 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.005863, allocations: 0 / 377.8 MB, free: 2.469 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.005864, allocations: 0 / 377.8 MB, free: 2.469 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.005869, allocations: 7.938 kB / 377.8 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.0008253/0.006694, allocations: 439.9 kB / 378.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.006744, allocations: 12.03 kB / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.006929, allocations: 20.88 kB / 378.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.007151, allocations: 128.6 kB / 378.4 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.007176, allocations: 12.36 kB / 378.4 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.007195, allocations: 12.38 kB / 378.4 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.007422, allocations: 82.2 kB / 378.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.007431, allocations: 192 / 378.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.007446, allocations: 4.375 kB / 378.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.007455, allocations: 11.88 kB / 378.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.007586, allocations: 43.91 kB / 378.5 MB, free: 1.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.008168, allocations: 315.6 kB / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.008418, allocations: 95.02 kB / 378.9 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.008519, allocations: 43.67 kB / 379 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.008553, allocations: 8 kB / 379 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.008764, allocations: 109 kB / 379.1 MB, free: 1.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.008765, allocations: 0 / 379.1 MB, free: 1.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006225/0.009387, allocations: 197 kB / 379.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.009448, allocations: 55.34 kB / 379.3 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.009626, allocations: 189.9 kB / 379.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.009658, allocations: 29.7 kB / 379.5 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.00976, allocations: 143.1 kB / 379.7 MB, free: 380 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.339e-05/0.009813, allocations: 43.7 kB / 379.7 MB, free: 336 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.961e-05/0.009893, allocations: 47.36 kB / 379.8 MB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002985/0.01019, allocations: 0.4962 MB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.0103, allocations: 35.98 kB / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.01045, allocations: 97.34 kB / 380.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.0107, allocations: 134.3 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.0107, allocations: 4 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003194/0.01102, allocations: 165.5 kB / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.01103, allocations: 4 kB / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.01104, allocations: 0 / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.01106, allocations: 8.203 kB / 380.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.0112, allocations: 27.92 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.01121, allocations: 3.938 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.966e-05/0.01127, allocations: 12.08 kB / 380.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.01128, allocations: 12 kB / 380.8 MB, free: 15.23 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.0001597/0.01144, allocations: 178.5 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.01147, allocations: 15.95 kB / 380.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.01151, allocations: 12.38 kB / 381 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.01151, allocations: 4 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.01152, allocations: 0 / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.01152, allocations: 3.984 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006479/0.01217, allocations: 445.2 kB / 381.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01217, allocations: 0 / 381.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/0.01222, allocations: 15.92 kB / 381.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.01222, allocations: 4 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.01224, allocations: 4 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.01224, allocations: 4 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01224, allocations: 0 / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004275/0.01267, allocations: 319.3 kB / 381.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.69e-05/0.01269, allocations: 7.953 kB / 381.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.01271, allocations: 3.984 kB / 381.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.01282, allocations: 12 kB / 381.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.01288, allocations: 15.92 kB / 381.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.0129, allocations: 7.984 kB / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.01299, allocations: 135.6 kB / 381.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01299, allocations: 0 / 381.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002484/0.01324, allocations: 24 kB / 381.9 MB, free: 13.96 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.0001343/0.01338, allocations: 103.1 kB / 382 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.01369, allocations: 119.6 kB / 382.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01369, allocations: 0 / 382.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.01383, allocations: 71.84 kB / 382.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.01412, allocations: 14.36 kB / 382.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005148/0.01463, allocations: 230.3 kB / 382.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.969e-05/0.01472, allocations: 75.33 kB / 382.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.706e-05/0.01477, allocations: 16.95 kB / 382.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.51e-05/0.01481, allocations: 12.5 kB / 382.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01481, allocations: 4 kB / 382.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of Templates: time 0.004581/0.01939, allocations: 1.089 MB / 383.7 MB, free: 12.2 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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.813653580960818]