Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.00153/0.00153, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 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.001736/0.001736, allocations: 207.9 kB / 25.13 MB, free: 3.586 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.403/1.403, allocations: 230.4 MB / 258.7 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2205/0.2205, allocations: 46.93 MB / 362 MB, free: 4.242 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 79.84 kB / 0.4978 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2742, allocations: 66.07 MB / 0.5623 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002771/0.277, allocations: 1.564 MB / 0.5638 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009986/0.278, allocations: 0.561 MB / 0.5644 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.281e-05/0.2781, allocations: 0 / 0.5644 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.625e-05/0.2781, allocations: 7.938 kB / 0.5644 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.173e-05/0.2782, allocations: 19.84 kB / 0.5644 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.2784, allocations: 51.81 kB / 0.5645 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.2786, allocations: 95.7 kB / 0.5646 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.211e-05/0.2786, allocations: 8 kB / 0.5646 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.2788, allocations: 47.83 kB / 0.5646 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.559e-05/0.2789, allocations: 39.84 kB / 0.5646 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.2789, allocations: 4 kB / 0.5646 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.671e-05/0.2789, allocations: 12 kB / 0.5647 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.279, allocations: 31.89 kB / 0.5647 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.279, allocations: 39.8 kB / 0.5647 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2792, allocations: 82.23 kB / 0.5648 GB, free: 1.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2792, allocations: 0 / 0.5648 GB, free: 1.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2792, allocations: 0 / 0.5648 GB, free: 1.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2792, allocations: 0 / 0.5648 GB, free: 1.727 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.0006885/0.2799, allocations: 326 kB / 0.5651 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.2799, allocations: 16.03 kB / 0.5651 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.2801, allocations: 16.88 kB / 0.5651 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.2803, allocations: 142.3 kB / 0.5653 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2803, allocations: 4.375 kB / 0.5653 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2803, allocations: 12.36 kB / 0.5653 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.2806, allocations: 89.95 kB / 0.5654 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.2806, allocations: 0 / 0.5654 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2806, allocations: 4 kB / 0.5654 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.2806, allocations: 4 kB / 0.5654 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.2807, allocations: 47.97 kB / 0.5654 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005396/0.2813, allocations: 303.7 kB / 0.5657 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.2815, allocations: 86.52 kB / 0.5658 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.2816, allocations: 40.84 kB / 0.5658 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.2816, allocations: 8 kB / 0.5659 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.2818, allocations: 111.3 kB / 0.566 GB, free: 424 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.2818, allocations: 3.938 kB / 0.566 GB, free: 420 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004816/0.2823, allocations: 193.7 kB / 0.5662 GB, free: 220 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2823, allocations: 51.41 kB / 0.5662 GB, free: 156 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.2825, allocations: 129.8 kB / 0.5663 GB, free: 16 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.2825, allocations: 33.7 kB / 0.5664 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.884e-05/0.2826, allocations: 92.38 kB / 0.5664 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.2826, allocations: 35.73 kB / 0.5665 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.2827, allocations: 37.7 kB / 0.5665 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2828, allocations: 330.8 kB / 0.5668 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.553e-05/0.2829, allocations: 31.98 kB / 0.5669 GB, free: 15.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.283, allocations: 81.22 kB / 0.5669 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.2833, allocations: 119.8 kB / 0.5671 GB, free: 15.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2833, allocations: 7.938 kB / 0.5671 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003149/0.2836, allocations: 157.5 kB / 0.5672 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2836, allocations: 4 kB / 0.5672 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2836, allocations: 4 kB / 0.5672 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2836, allocations: 0 / 0.5672 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.2837, allocations: 27.92 kB / 0.5672 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.2838, allocations: 7.938 kB / 0.5673 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.2838, allocations: 16.08 kB / 0.5673 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.2838, allocations: 4 kB / 0.5673 GB, free: 14.98 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.0001292/0.284, allocations: 131.8 kB / 0.5674 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.284, allocations: 7.953 kB / 0.5674 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.447e-05/0.284, allocations: 12.44 kB / 0.5674 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.284, allocations: 0 / 0.5674 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.284, allocations: 3.938 kB / 0.5674 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.284, allocations: 0 / 0.5674 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006348/0.2847, allocations: 441.4 kB / 0.5678 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2847, allocations: 0 / 0.5678 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.235e-05/0.2847, allocations: 7.938 kB / 0.5678 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2847, allocations: 4 kB / 0.5679 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.2847, allocations: 3.984 kB / 0.5679 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2847, allocations: 0 / 0.5679 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2847, allocations: 0 / 0.5679 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.2851, allocations: 267.4 kB / 0.5681 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.162e-05/0.2851, allocations: 11.89 kB / 0.5681 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.2852, allocations: 7.984 kB / 0.5681 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.2853, allocations: 8 kB / 0.5681 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.2853, allocations: 11.97 kB / 0.5681 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2853, allocations: 4 kB / 0.5682 GB, free: 14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.076e-05/0.2854, allocations: 91.27 kB / 0.5682 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2854, allocations: 3.938 kB / 0.5682 GB, free: 13.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.2857, allocations: 28 kB / 0.5683 GB, free: 13.88 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.0001074/0.2858, allocations: 107.1 kB / 0.5684 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.2861, allocations: 107.1 kB / 0.5685 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.2861, allocations: 0 / 0.5685 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.2862, allocations: 47.92 kB / 0.5685 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.2865, allocations: 14.42 kB / 0.5685 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004582/0.2869, allocations: 211.7 kB / 0.5687 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.2873, allocations: 0.7001 MB / 0.5694 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.996e-05/0.2873, allocations: 8.984 kB / 0.5694 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.2873, allocations: 19.42 kB / 0.5694 GB, free: 12.61 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2873, allocations: 0 / 0.5694 GB, free: 12.61 MB / 414.1 MB Notification: Performance of Templates: time 0.003823/0.2912, allocations: 1.106 MB / 0.5705 GB, free: 11.51 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 4.562122961971909]