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.0009698/0.0009698, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.0009261/0.0009261, allocations: 165 kB / 24.56 MB, free: 12 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 0.9014/0.9014, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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.2671/0.2671, allocations: 32.81 MB / 294.3 MB, free: 1.258 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.663e-06/1.663e-06, allocations: 3.938 kB / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.753e-05/2.92e-05, allocations: 6.25 kB / 376 MB, free: 4.664 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001875/0.001904, allocations: 1.587 MB / 377.6 MB, free: 3.066 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000804/0.002708, allocations: 0.5452 MB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.39e-05/0.002762, allocations: 0 / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.134e-05/0.002793, allocations: 7.922 kB / 378.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.356e-05/0.002877, allocations: 11.88 kB / 378.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.003116, allocations: 51.75 kB / 378.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.003246, allocations: 99.69 kB / 378.3 MB, free: 2.348 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.56e-05/0.003331, allocations: 7.984 kB / 378.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.003464, allocations: 59.88 kB / 378.4 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.909e-05/0.003523, allocations: 31.89 kB / 378.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.003541, allocations: 12 kB / 378.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.89e-05/0.00358, allocations: 12 kB / 378.4 MB, free: 2.227 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.003601, allocations: 23.91 kB / 378.4 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.564e-05/0.003637, allocations: 23.92 kB / 378.5 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.003754, allocations: 75.7 kB / 378.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.003755, allocations: 0 / 378.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.003756, allocations: 0 / 378.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.00376, allocations: 0 / 378.5 MB, free: 2.105 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.0004709/0.004231, allocations: 444.2 kB / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.004263, allocations: 8.031 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.004364, allocations: 24.88 kB / 379 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.004501, allocations: 136.4 kB / 379.1 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.004521, allocations: 4.375 kB / 379.1 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.004532, allocations: 8.375 kB / 379.2 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.004666, allocations: 90.89 kB / 379.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.004674, allocations: 192 / 379.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.004684, allocations: 384 / 379.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.004693, allocations: 7.938 kB / 379.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.135e-05/0.004734, allocations: 19.98 kB / 379.3 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.005075, allocations: 315.6 kB / 379.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.00519, allocations: 70.98 kB / 379.6 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.607e-05/0.005226, allocations: 23.67 kB / 379.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.005241, allocations: 4 kB / 379.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.483e-05/0.005336, allocations: 88.95 kB / 379.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.005337, allocations: 4 kB / 379.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002446/0.005582, allocations: 157 kB / 379.9 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.005616, allocations: 59.41 kB / 380 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.305e-05/0.005689, allocations: 173.9 kB / 380.1 MB, free: 340 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.005705, allocations: 33.7 kB / 380.2 MB, free: 300 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.246e-05/0.005747, allocations: 135.2 kB / 380.3 MB, free: 156 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.00578, allocations: 39.69 kB / 380.4 MB, free: 116 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.00582, allocations: 43.36 kB / 380.4 MB, free: 64 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.005937, allocations: 0.4962 MB / 380.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.244e-05/0.00597, allocations: 15.98 kB / 380.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.676e-05/0.006027, allocations: 78.42 kB / 381 MB, free: 15.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.138e-05/0.006118, allocations: 106.4 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.00612, allocations: 0 / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001299/0.00625, allocations: 125.6 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.006262, allocations: 15.92 kB / 381.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.006266, allocations: 0 / 381.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.00628, allocations: 4 kB / 381.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.006356, allocations: 24.11 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.006361, allocations: 4 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.006634, allocations: 11.95 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.006643, allocations: 7.984 kB / 381.3 MB, free: 15.12 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 7.087e-05/0.006714, allocations: 178.4 kB / 381.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.006731, allocations: 20.16 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.332e-05/0.006755, allocations: 12.44 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.006756, allocations: 3.938 kB / 381.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.00676, allocations: 0 / 381.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.006763, allocations: 0 / 381.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.007052, allocations: 417.2 kB / 381.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.007053, allocations: 4 kB / 381.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.357e-05/0.007077, allocations: 4 kB / 381.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.007079, allocations: 0 / 381.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.00709, allocations: 11.98 kB / 381.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.007092, allocations: 4 kB / 381.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.007093, allocations: 0 / 381.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.007259, allocations: 291.3 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-06/0.007266, allocations: 7.953 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.007284, allocations: 7.984 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.18e-05/0.007336, allocations: 12 kB / 382.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.007369, allocations: 11.92 kB / 382.2 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.007382, allocations: 7.984 kB / 382.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.761e-05/0.00742, allocations: 139.2 kB / 382.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00742, allocations: 0 / 382.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000156/0.007576, allocations: 24 kB / 382.4 MB, free: 13.91 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 6.273e-05/0.007639, allocations: 99.19 kB / 382.5 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.007777, allocations: 91.52 kB / 382.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.007778, allocations: 256 / 382.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.127e-05/0.007829, allocations: 43.67 kB / 382.6 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.008006, allocations: 12.75 kB / 382.6 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/0.008446, allocations: 214.4 kB / 382.9 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.396e-05/0.00848, allocations: 63.34 kB / 382.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.754e-05/0.008508, allocations: 16.95 kB / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.008538, allocations: 16.5 kB / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008539, allocations: 7.938 kB / 383 MB, free: 13.3 MB / 362.7 MB Notification: Performance of Templates: time 0.002484/0.01102, allocations: 1.121 MB / 384.1 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9115630760788918]