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.001537/0.001537, allocations: 119.9 kB / 20.44 MB, free: 1.297 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.001589/0.001589, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.556/1.556, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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.2461/0.2461, allocations: 46.92 MB / 360.8 MB, free: 4.273 MB / 286.1 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 0.002255/0.002255, allocations: 63.91 kB / 0.4966 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.422, allocations: 66.03 MB / 0.5611 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00308/0.4251, allocations: 1.554 MB / 0.5626 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.4262, allocations: 0.5765 MB / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.412e-05/0.4263, allocations: 0 / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.708e-05/0.4263, allocations: 3.938 kB / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.4264, allocations: 15.86 kB / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.4267, allocations: 51.81 kB / 0.5633 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.4269, allocations: 95.69 kB / 0.5634 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.427, allocations: 8 kB / 0.5634 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.4272, allocations: 47.84 kB / 0.5634 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.4273, allocations: 43.83 kB / 0.5635 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.4273, allocations: 8 kB / 0.5635 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.4e-05/0.4274, allocations: 8 kB / 0.5635 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.4274, allocations: 23.92 kB / 0.5635 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.419e-05/0.4275, allocations: 43.78 kB / 0.5635 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.4277, allocations: 78.09 kB / 0.5636 GB, free: 1.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4277, allocations: 0 / 0.5636 GB, free: 1.832 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4277, allocations: 0 / 0.5636 GB, free: 1.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.4277, allocations: 3.984 kB / 0.5636 GB, free: 1.828 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.0007573/0.4284, allocations: 334 kB / 0.5639 GB, free: 1.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.4285, allocations: 8.031 kB / 0.5639 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.4286, allocations: 16.89 kB / 0.564 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.4289, allocations: 134.3 kB / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.4289, allocations: 12.31 kB / 0.5641 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.4289, allocations: 4.375 kB / 0.5641 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.4292, allocations: 97.94 kB / 0.5642 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.4292, allocations: 0 / 0.5642 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.4292, allocations: 4 kB / 0.5642 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.4292, allocations: 4 kB / 0.5642 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.4293, allocations: 47.97 kB / 0.5642 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005899/0.4299, allocations: 303.7 kB / 0.5645 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.4301, allocations: 94.52 kB / 0.5646 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.81e-05/0.4302, allocations: 36.84 kB / 0.5647 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.4303, allocations: 4 kB / 0.5647 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002013/0.4305, allocations: 99.36 kB / 0.5648 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.4305, allocations: 3.938 kB / 0.5648 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004783/0.431, allocations: 205.4 kB / 0.565 GB, free: 328 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.431, allocations: 55.41 kB / 0.565 GB, free: 260 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.4311, allocations: 113.8 kB / 0.5651 GB, free: 136 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.4312, allocations: 37.69 kB / 0.5652 GB, free: 92 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.4312, allocations: 96.42 kB / 0.5652 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.4313, allocations: 35.67 kB / 0.5653 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.4314, allocations: 41.64 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4315, allocations: 330.8 kB / 0.5656 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.4316, allocations: 35.98 kB / 0.5657 GB, free: 15.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.4317, allocations: 77.22 kB / 0.5657 GB, free: 15.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.432, allocations: 124.2 kB / 0.5659 GB, free: 15.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.432, allocations: 224 / 0.5659 GB, free: 15.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002981/0.4323, allocations: 149.5 kB / 0.566 GB, free: 15.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4323, allocations: 11.94 kB / 0.566 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4323, allocations: 4.125 kB / 0.566 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.4323, allocations: 7.984 kB / 0.566 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.4324, allocations: 23.94 kB / 0.5661 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.4324, allocations: 11.91 kB / 0.5661 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.155e-05/0.4325, allocations: 11.95 kB / 0.5661 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.4325, allocations: 8 kB / 0.5661 GB, free: 15.08 MB / 414.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.0001218/0.4326, allocations: 127.8 kB / 0.5662 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.4326, allocations: 11.94 kB / 0.5662 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.4327, allocations: 12.44 kB / 0.5662 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.4327, allocations: 4 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4327, allocations: 3.938 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4327, allocations: 0 / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005934/0.4333, allocations: 425.4 kB / 0.5666 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4333, allocations: 0 / 0.5666 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.357e-05/0.4333, allocations: 11.94 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.4333, allocations: 0 / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.4334, allocations: 7.984 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4334, allocations: 4 kB / 0.5667 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4334, allocations: 0 / 0.5667 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.4337, allocations: 262.6 kB / 0.5669 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.4337, allocations: 11.89 kB / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.4338, allocations: 0 / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.4339, allocations: 11.98 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/0.4339, allocations: 11.98 kB / 0.5669 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.4339, allocations: 7.984 kB / 0.567 GB, free: 14.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.234e-05/0.434, allocations: 95.27 kB / 0.567 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.434, allocations: 0 / 0.567 GB, free: 14.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.4343, allocations: 20 kB / 0.5671 GB, free: 14 MB / 414.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.0001082/0.4344, allocations: 107.7 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002877/0.4346, allocations: 104.1 kB / 0.5673 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4346, allocations: 7.938 kB / 0.5673 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.4348, allocations: 47.92 kB / 0.5673 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.4351, allocations: 16.69 kB / 0.5673 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000517/0.4356, allocations: 207.7 kB / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.4359, allocations: 0.6962 MB / 0.5682 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.544e-05/0.436, allocations: 17.03 kB / 0.5682 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.613e-05/0.436, allocations: 11.44 kB / 0.5682 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.436, allocations: 0 / 0.5682 GB, free: 12.73 MB / 414.1 MB Notification: Performance of Templates: time 0.004371/0.4404, allocations: 1.11 MB / 0.5693 GB, free: 11.62 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.528639139141887]