Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001187/0.001187, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.00124/0.00124, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 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 0.9907/0.9907, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3813/0.3813, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 378.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.684e-05, allocations: 2.312 kB / 378.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002188/0.002215, allocations: 1.571 MB / 380.1 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008206/0.003036, allocations: 0.5452 MB / 380.6 MB, free: 256 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.249e-05/0.003098, allocations: 0 / 380.6 MB, free: 256 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.079e-05/0.003129, allocations: 7.875 kB / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.804e-05/0.003217, allocations: 19.86 kB / 380.6 MB, free: 228 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.003451, allocations: 51.8 kB / 380.7 MB, free: 176 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.003574, allocations: 91.7 kB / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.407e-05/0.003668, allocations: 4 kB / 380.8 MB, free: 80 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.003827, allocations: 67.81 kB / 380.8 MB, free: 12 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.981e-05/0.003907, allocations: 35.88 kB / 380.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.003927, allocations: 8 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.273e-05/0.00397, allocations: 12 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.022e-05/0.00399, allocations: 19.91 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.424e-05/0.004024, allocations: 31.91 kB / 380.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.004145, allocations: 67.8 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.004148, allocations: 0 / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.004149, allocations: 4 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.758e-06/0.004153, allocations: 0 / 381 MB, free: 15.84 MB / 362.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.0004689/0.004622, allocations: 432.2 kB / 381.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.00466, allocations: 12.03 kB / 381.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.004774, allocations: 28.81 kB / 381.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.004903, allocations: 136.5 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.004922, allocations: 8.375 kB / 381.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.004935, allocations: 8.375 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.005053, allocations: 78.91 kB / 381.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.005062, allocations: 4.188 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.00507, allocations: 384 / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.005078, allocations: 7.938 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.407e-05/0.005112, allocations: 23.91 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003182/0.005431, allocations: 292.3 kB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.005535, allocations: 66.95 kB / 382.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.744e-05/0.005562, allocations: 23.67 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.005584, allocations: 4 kB / 382.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.833e-05/0.005682, allocations: 88.88 kB / 382.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.005684, allocations: 0 / 382.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002204/0.005904, allocations: 140.2 kB / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.005943, allocations: 55.53 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.971e-05/0.006033, allocations: 173.9 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.006051, allocations: 37.7 kB / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.566e-05/0.006106, allocations: 143.1 kB / 382.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.00614, allocations: 39.62 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.006183, allocations: 43.34 kB / 382.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.00632, allocations: 0.4962 MB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.684e-05/0.006347, allocations: 15.98 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.503e-05/0.006402, allocations: 81.33 kB / 383.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.135e-05/0.006483, allocations: 86.36 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.006486, allocations: 4 kB / 383.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001236/0.006609, allocations: 125.5 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.006624, allocations: 10.34 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.006629, allocations: 0 / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.006641, allocations: 0 / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.759e-05/0.006719, allocations: 23.98 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.006724, allocations: 7.938 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.904e-05/0.006753, allocations: 11.95 kB / 383.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.006761, allocations: 8.125 kB / 383.7 MB, free: 12.93 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 8.113e-05/0.006842, allocations: 174.5 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.00686, allocations: 20.16 kB / 383.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.006889, allocations: 8.438 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.006891, allocations: 3.938 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.006893, allocations: 4 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.006897, allocations: 0 / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006153/0.007513, allocations: 385 kB / 384.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.007516, allocations: 3.984 kB / 384.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.125e-05/0.007547, allocations: 8 kB / 384.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.00755, allocations: 4 kB / 384.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.007558, allocations: 11.94 kB / 384.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.007559, allocations: 0 / 384.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.007561, allocations: 0 / 384.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.007725, allocations: 287.6 kB / 384.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.007735, allocations: 11.95 kB / 384.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.007749, allocations: 0 / 384.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.219e-05/0.007801, allocations: 11.98 kB / 384.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.007833, allocations: 11.98 kB / 384.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.007846, allocations: 4 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.23e-05/0.007888, allocations: 135.2 kB / 384.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007888, allocations: 0 / 384.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001546/0.008043, allocations: 24 kB / 384.8 MB, free: 11.78 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 9.103e-05/0.008134, allocations: 111.8 kB / 384.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001196/0.008253, allocations: 75.56 kB / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.008257, allocations: 4 kB / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.077e-05/0.008298, allocations: 35.61 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001915/0.008489, allocations: 23.95 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004492/0.008938, allocations: 206.2 kB / 385.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.56e-05/0.008974, allocations: 59.36 kB / 385.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.286e-05/0.009007, allocations: 12.97 kB / 385.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.056e-05/0.009067, allocations: 82.19 kB / 385.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.009068, allocations: 3.938 kB / 385.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of Templates: time 0.002724/0.01179, allocations: 1.159 MB / 386.5 MB, free: 9.973 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",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.312398272100836]