Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 107.1 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 206.7 kB / 23.72 MB, free: 4.492 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 230.5 MB / 257.4 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2535/0.2535, allocations: 46.94 MB / 360.8 MB, free: 3.918 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 79.88 kB / 0.4966 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.5239, allocations: 66.09 MB / 0.5612 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003965/0.5279, allocations: 1.527 MB / 0.5627 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.5292, allocations: 0.526 MB / 0.5632 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.5293, allocations: 4 kB / 0.5632 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.83e-05/0.5293, allocations: 3.938 kB / 0.5632 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.5294, allocations: 15.8 kB / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.5297, allocations: 55.88 kB / 0.5632 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.5299, allocations: 87.7 kB / 0.5633 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.5301, allocations: 8 kB / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.5302, allocations: 51.83 kB / 0.5634 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.871e-05/0.5303, allocations: 35.83 kB / 0.5634 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.5304, allocations: 12 kB / 0.5634 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.233e-05/0.5304, allocations: 15.94 kB / 0.5634 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.493e-05/0.5305, allocations: 23.91 kB / 0.5635 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.479e-05/0.5305, allocations: 27.86 kB / 0.5635 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.5307, allocations: 86.08 kB / 0.5636 GB, free: 1.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.5307, allocations: 0 / 0.5636 GB, free: 1.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.5307, allocations: 3.938 kB / 0.5636 GB, free: 1.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.5307, allocations: 0 / 0.5636 GB, free: 1.465 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.0008137/0.5315, allocations: 334 kB / 0.5639 GB, free: 1.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.5316, allocations: 8.031 kB / 0.5639 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.5318, allocations: 28.81 kB / 0.5639 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.5321, allocations: 126.4 kB / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.5321, allocations: 4.375 kB / 0.5641 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.5321, allocations: 12.36 kB / 0.5641 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.5324, allocations: 85.95 kB / 0.5642 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5324, allocations: 0 / 0.5642 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.5324, allocations: 8 kB / 0.5642 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.5324, allocations: 4 kB / 0.5642 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.5325, allocations: 51.91 kB / 0.5642 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000572/0.5331, allocations: 260.4 kB / 0.5645 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.5333, allocations: 82.48 kB / 0.5645 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.5334, allocations: 44.83 kB / 0.5646 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.5335, allocations: 0 / 0.5646 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.5337, allocations: 114.7 kB / 0.5647 GB, free: 220 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.5337, allocations: 0 / 0.5647 GB, free: 220 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005148/0.5342, allocations: 197.7 kB / 0.5649 GB, free: 16 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.5343, allocations: 51.41 kB / 0.5649 GB, free: 15.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.5344, allocations: 118.1 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.5344, allocations: 37.64 kB / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/0.5345, allocations: 100.4 kB / 0.5652 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.5346, allocations: 31.73 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.5347, allocations: 37.7 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.5348, allocations: 326.8 kB / 0.5656 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.591e-05/0.5349, allocations: 39.97 kB / 0.5656 GB, free: 15.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.5351, allocations: 77.22 kB / 0.5657 GB, free: 15.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.5353, allocations: 120.2 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5353, allocations: 0 / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002932/0.5356, allocations: 160.7 kB / 0.5659 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.5356, allocations: 7.938 kB / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5356, allocations: 4 kB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.5356, allocations: 0 / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.5357, allocations: 19.98 kB / 0.566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.5358, allocations: 4 kB / 0.566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.863e-05/0.5358, allocations: 27.81 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.5358, allocations: 8.125 kB / 0.566 GB, free: 14.79 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.0001362/0.536, allocations: 131.8 kB / 0.5661 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.536, allocations: 7.953 kB / 0.5661 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.536, allocations: 16.42 kB / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.536, allocations: 0 / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.536, allocations: 0 / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.5361, allocations: 3.938 kB / 0.5662 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005809/0.5366, allocations: 394 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5366, allocations: 0 / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-05/0.5367, allocations: 12 kB / 0.5665 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.5367, allocations: 0 / 0.5665 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.5367, allocations: 11.92 kB / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.5367, allocations: 4 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5367, allocations: 0 / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.5371, allocations: 259.4 kB / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.786e-05/0.5371, allocations: 11.95 kB / 0.5668 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.5371, allocations: 3.938 kB / 0.5668 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.5372, allocations: 15.92 kB / 0.5668 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.5373, allocations: 11.98 kB / 0.5668 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.5373, allocations: 7.984 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.901e-05/0.5374, allocations: 95.27 kB / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5374, allocations: 0 / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002404/0.5376, allocations: 20 kB / 0.567 GB, free: 13.73 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.0001265/0.5377, allocations: 103.2 kB / 0.5671 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002856/0.538, allocations: 103.8 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.538, allocations: 256 / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.5382, allocations: 55.48 kB / 0.5672 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.5385, allocations: 14.38 kB / 0.5672 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004945/0.539, allocations: 219.6 kB / 0.5674 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.799e-05/0.5391, allocations: 83.08 kB / 0.5675 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.592e-05/0.5391, allocations: 8.969 kB / 0.5675 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.5391, allocations: 15.44 kB / 0.5675 GB, free: 13.09 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5391, allocations: 4 kB / 0.5675 GB, free: 13.08 MB / 414.1 MB Notification: Performance of Templates: time 0.005498/0.5446, allocations: 1.12 MB / 0.5686 GB, free: 11.98 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.542196452617645]