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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 196.8 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.611/1.611, allocations: 226.5 MB / 245.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007901/0.0007903, allocations: 97.7 kB / 297.5 MB, free: 6.715 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3946/0.3946, allocations: 44.83 MB / 394.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003025, allocations: 11.98 kB / 467.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4337, allocations: 62.95 MB / 0.5184 GB, free: 37.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.5692, allocations: 87.72 MB / 0.6041 GB, free: 1.648 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.5696, allocations: 79.88 kB / 0.6041 GB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004815/0.5744, allocations: 1.633 MB / 0.6057 GB, free: 15.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.5744, allocations: 0 / 0.6057 GB, free: 15.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.5745, allocations: 4.188 kB / 0.6057 GB, free: 15.93 MB / 426.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.0005288/0.575, allocations: 399.1 kB / 0.6061 GB, free: 15.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.575, allocations: 8.031 kB / 0.6061 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.5752, allocations: 24.92 kB / 0.6062 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.5753, allocations: 172.2 kB / 0.6063 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.5754, allocations: 8.359 kB / 0.6063 GB, free: 15.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.5754, allocations: 8.375 kB / 0.6063 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.5756, allocations: 82.2 kB / 0.6064 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.5756, allocations: 4.188 kB / 0.6064 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.5756, allocations: 7.938 kB / 0.6064 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.5757, allocations: 7.984 kB / 0.6064 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.5758, allocations: 47.91 kB / 0.6065 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.5763, allocations: 324.7 kB / 0.6068 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.5766, allocations: 94.47 kB / 0.6069 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.041e-05/0.5767, allocations: 45.06 kB / 0.6069 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.5767, allocations: 3.938 kB / 0.6069 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.5769, allocations: 103.3 kB / 0.607 GB, free: 14.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/0.5769, allocations: 0 / 0.607 GB, free: 14.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=14): time 0.00044/0.5774, allocations: 193.7 kB / 0.6072 GB, free: 14.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.5774, allocations: 55.41 kB / 0.6073 GB, free: 14.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.5775, allocations: 117.8 kB / 0.6074 GB, free: 14.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.5776, allocations: 37.69 kB / 0.6074 GB, free: 14.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.5776, allocations: 96.36 kB / 0.6075 GB, free: 13.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.5777, allocations: 39.53 kB / 0.6075 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.5777, allocations: 4 kB / 0.6075 GB, free: 13.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5778, allocations: 326.8 kB / 0.6079 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.14e-05/0.5779, allocations: 31.98 kB / 0.6079 GB, free: 13.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.578, allocations: 81.12 kB / 0.608 GB, free: 13.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.5782, allocations: 121.1 kB / 0.6081 GB, free: 13.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5783, allocations: 0 / 0.6081 GB, free: 13.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002589/0.5785, allocations: 166.2 kB / 0.6082 GB, free: 13.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.5785, allocations: 4 kB / 0.6082 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.5786, allocations: 4 kB / 0.6082 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5786, allocations: 0 / 0.6082 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.5787, allocations: 32.08 kB / 0.6083 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.5787, allocations: 0 / 0.6083 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.885e-05/0.5788, allocations: 15.92 kB / 0.6083 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.5788, allocations: 8 kB / 0.6083 GB, free: 13.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.5789, allocations: 136 kB / 0.6084 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.5789, allocations: 7.906 kB / 0.6084 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.579, allocations: 12.48 kB / 0.6084 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.579, allocations: 4 kB / 0.6085 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.579, allocations: 4 kB / 0.6085 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.579, allocations: 3.938 kB / 0.6085 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005031/0.5795, allocations: 442.3 kB / 0.6089 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5795, allocations: 0 / 0.6089 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.258e-05/0.5796, allocations: 12 kB / 0.6089 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.5796, allocations: 3.938 kB / 0.6089 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.5796, allocations: 7.984 kB / 0.6089 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.5796, allocations: 4 kB / 0.6089 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5796, allocations: 0 / 0.6089 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.5799, allocations: 254.2 kB / 0.6092 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.58, allocations: 85 kB / 0.6092 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.58, allocations: 11.94 kB / 0.6092 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.5801, allocations: 15.98 kB / 0.6093 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.5802, allocations: 7.984 kB / 0.6093 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.5802, allocations: 7.938 kB / 0.6093 GB, free: 11.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.1e-05/0.5803, allocations: 99.58 kB / 0.6094 GB, free: 11.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5803, allocations: 0 / 0.6094 GB, free: 11.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.5805, allocations: 24 kB / 0.6094 GB, free: 11.83 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001301/0.5807, allocations: 100.1 kB / 0.6095 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002356/0.5809, allocations: 111.8 kB / 0.6096 GB, free: 11.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5809, allocations: 4 kB / 0.6096 GB, free: 11.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.581, allocations: 47.98 kB / 0.6096 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.5813, allocations: 14.06 kB / 0.6097 GB, free: 11.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000448/0.5817, allocations: 217.7 kB / 0.6099 GB, free: 11.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.582, allocations: 0.6926 MB / 0.6105 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.301e-05/0.5821, allocations: 12.88 kB / 0.6106 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.055e-05/0.5821, allocations: 15.44 kB / 0.6106 GB, free: 10.56 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5821, allocations: 4 kB / 0.6106 GB, free: 10.56 MB / 426.7 MB Notification: Performance of Templates: time 0.002939/0.585, allocations: 0.8745 MB / 0.6114 GB, free: 9.688 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (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) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches