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.001546/0.001546, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001728/0.001728, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 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.508/1.508, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 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.2336/0.2336, allocations: 44.92 MB / 359.6 MB, free: 6.285 MB / 286.1 MB " [Timeout remaining time 179] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002281, allocations: 64.19 kB / 0.4943 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4075, allocations: 65.47 MB / 0.5582 GB, free: 7.723 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003036/0.4105, allocations: 1.573 MB / 0.5598 GB, free: 6.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.4117, allocations: 0.5571 MB / 0.5603 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.4118, allocations: 4 kB / 0.5603 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.335e-05/0.4118, allocations: 7.875 kB / 0.5603 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.484e-05/0.4119, allocations: 19.84 kB / 0.5603 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.4121, allocations: 47.88 kB / 0.5604 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.4123, allocations: 95.7 kB / 0.5605 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.4124, allocations: 8 kB / 0.5605 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.4126, allocations: 51.83 kB / 0.5605 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.39e-05/0.4127, allocations: 35.84 kB / 0.5606 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.4127, allocations: 4 kB / 0.5606 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.761e-05/0.4127, allocations: 19.98 kB / 0.5606 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.4128, allocations: 23.91 kB / 0.5606 GB, free: 5.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.165e-05/0.4128, allocations: 39.8 kB / 0.5606 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.413, allocations: 78.09 kB / 0.5607 GB, free: 5.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.413, allocations: 4 kB / 0.5607 GB, free: 5.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.413, allocations: 3.938 kB / 0.5607 GB, free: 5.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.413, allocations: 0 / 0.5607 GB, free: 5.172 MB / 398.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.0006088/0.4136, allocations: 326 kB / 0.561 GB, free: 4.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.674e-05/0.4136, allocations: 16.03 kB / 0.5611 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.4138, allocations: 16.88 kB / 0.5611 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.414, allocations: 138.3 kB / 0.5612 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.414, allocations: 8.359 kB / 0.5612 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.4141, allocations: 8.375 kB / 0.5612 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.4143, allocations: 89.95 kB / 0.5613 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4143, allocations: 0 / 0.5613 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.423e-05/0.4143, allocations: 4 kB / 0.5613 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4143, allocations: 0 / 0.5613 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.4145, allocations: 59.91 kB / 0.5614 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.415, allocations: 295.7 kB / 0.5617 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.4153, allocations: 86.52 kB / 0.5617 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.981e-05/0.4154, allocations: 44.78 kB / 0.5618 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.4154, allocations: 4 kB / 0.5618 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.4156, allocations: 115.3 kB / 0.5619 GB, free: 3.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.4156, allocations: 0 / 0.5619 GB, free: 3.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005255/0.4161, allocations: 189.7 kB / 0.5621 GB, free: 3.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.4162, allocations: 59.39 kB / 0.5621 GB, free: 3.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.4163, allocations: 125.8 kB / 0.5622 GB, free: 3.465 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.4163, allocations: 33.7 kB / 0.5623 GB, free: 3.426 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.4164, allocations: 92.38 kB / 0.5624 GB, free: 3.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.4164, allocations: 35.73 kB / 0.5624 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.4165, allocations: 37.7 kB / 0.5624 GB, free: 3.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4167, allocations: 326.7 kB / 0.5627 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.4168, allocations: 39.98 kB / 0.5628 GB, free: 2.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.4169, allocations: 82.95 kB / 0.5629 GB, free: 2.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.4171, allocations: 115.8 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4171, allocations: 7.938 kB / 0.563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003243/0.4174, allocations: 161.5 kB / 0.5631 GB, free: 2.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4175, allocations: 4 kB / 0.5631 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4175, allocations: 4 kB / 0.5631 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.4175, allocations: 0 / 0.5631 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4176, allocations: 19.98 kB / 0.5632 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.4176, allocations: 7.938 kB / 0.5632 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.308e-05/0.4177, allocations: 16.08 kB / 0.5632 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.4177, allocations: 7.938 kB / 0.5632 GB, free: 2.434 MB / 398.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.0001275/0.4178, allocations: 127.8 kB / 0.5633 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.4178, allocations: 7.953 kB / 0.5633 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.4179, allocations: 12.44 kB / 0.5633 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.4179, allocations: 0 / 0.5633 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4179, allocations: 3.938 kB / 0.5633 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4179, allocations: 0 / 0.5633 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006569/0.4185, allocations: 433.4 kB / 0.5638 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4185, allocations: 0 / 0.5638 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.605e-05/0.4186, allocations: 11.94 kB / 0.5638 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.4186, allocations: 3.984 kB / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.4186, allocations: 0 / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4186, allocations: 0 / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4186, allocations: 0 / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/0.419, allocations: 266.9 kB / 0.564 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.725e-05/0.419, allocations: 11.89 kB / 0.564 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.419, allocations: 7.984 kB / 0.564 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.4191, allocations: 11.98 kB / 0.5641 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.4192, allocations: 7.984 kB / 0.5641 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.4192, allocations: 7.938 kB / 0.5641 GB, free: 1.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.617e-05/0.4193, allocations: 91.27 kB / 0.5642 GB, free: 1.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4193, allocations: 0 / 0.5642 GB, free: 1.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000255/0.4195, allocations: 28 kB / 0.5642 GB, free: 1.344 MB / 398.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 0.0001294/0.4197, allocations: 107.6 kB / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002857/0.4199, allocations: 107.8 kB / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4199, allocations: 0 / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.4201, allocations: 43.98 kB / 0.5644 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4203, allocations: 16.23 kB / 0.5644 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.4208, allocations: 245.3 kB / 0.5647 GB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.4212, allocations: 0.6924 MB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.4212, allocations: 19.44 kB / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4212, allocations: 0 / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of Templates: time 0.003387/0.4246, allocations: 1.277 MB / 0.5666 GB, free: 14.77 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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: 7.529995929915458]