Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008822/0.0008823, allocations: 94.14 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1801/0.1801, allocations: 43.5 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.731e-05/1.734e-05, allocations: 4 kB / 418.3 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 58.85 MB / 477.1 MB, free: 1.656 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3621/0.4624, allocations: 84.97 MB / 0.5489 GB, free: 9.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.4626, allocations: 68.83 kB / 0.549 GB, free: 9.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003542/0.4661, allocations: 1.466 MB / 0.5504 GB, free: 8.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4662, allocations: 0 / 0.5504 GB, free: 8.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.4662, allocations: 4 kB / 0.5504 GB, free: 8.328 MB / 362.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.0003659/0.4665, allocations: 381.5 kB / 0.5508 GB, free: 7.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.4666, allocations: 12.03 kB / 0.5508 GB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.4666, allocations: 7.906 kB / 0.5508 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.818e-05/0.4667, allocations: 170.7 kB / 0.5509 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.4668, allocations: 4 kB / 0.5509 GB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.4668, allocations: 11.98 kB / 0.551 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.072e-05/0.4669, allocations: 38.58 kB / 0.551 GB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.467, allocations: 76.17 kB / 0.5511 GB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.467, allocations: 0 / 0.5511 GB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.467, allocations: 3.984 kB / 0.5511 GB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.467, allocations: 4 kB / 0.5511 GB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003991/0.4674, allocations: 305.5 kB / 0.5514 GB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.4676, allocations: 79.42 kB / 0.5514 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.664e-05/0.4676, allocations: 38.98 kB / 0.5515 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.4677, allocations: 0 / 0.5515 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.4678, allocations: 97.03 kB / 0.5516 GB, free: 7.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.4678, allocations: 0 / 0.5516 GB, free: 7.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002244/0.468, allocations: 134.4 kB / 0.5517 GB, free: 6.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.157e-05/0.4681, allocations: 55.41 kB / 0.5518 GB, free: 6.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.783e-05/0.4681, allocations: 107.6 kB / 0.5519 GB, free: 6.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.4681, allocations: 28.89 kB / 0.5519 GB, free: 6.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.109e-05/0.4682, allocations: 91.84 kB / 0.552 GB, free: 6.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.4682, allocations: 29.5 kB / 0.552 GB, free: 6.652 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.4682, allocations: 0 / 0.552 GB, free: 6.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.524e-05/0.4683, allocations: 328.9 kB / 0.5523 GB, free: 6.328 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.05e-05/0.4683, allocations: 25.94 kB / 0.5523 GB, free: 6.312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.749e-05/0.4684, allocations: 70.08 kB / 0.5524 GB, free: 6.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.521e-05/0.4684, allocations: 36.42 kB / 0.5524 GB, free: 6.215 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4684, allocations: 0 / 0.5524 GB, free: 6.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001501/0.4686, allocations: 131.8 kB / 0.5526 GB, free: 6.098 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4686, allocations: 8 kB / 0.5526 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4686, allocations: 0 / 0.5526 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.4687, allocations: 4 kB / 0.5526 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.4688, allocations: 23.92 kB / 0.5526 GB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.4688, allocations: 0 / 0.5526 GB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.426e-05/0.4688, allocations: 11.98 kB / 0.5526 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.4688, allocations: 7.781 kB / 0.5526 GB, free: 6.047 MB / 362.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 () * 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 5.844e-05/0.4689, allocations: 119.1 kB / 0.5527 GB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.4689, allocations: 7.906 kB / 0.5527 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.849e-05/0.469, allocations: 15.38 kB / 0.5528 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.469, allocations: 0 / 0.5528 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.469, allocations: 3.984 kB / 0.5528 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.469, allocations: 0 / 0.5528 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.4693, allocations: 400.1 kB / 0.5531 GB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4693, allocations: 4 kB / 0.5531 GB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.295e-05/0.4694, allocations: 11.98 kB / 0.5532 GB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4694, allocations: 0 / 0.5532 GB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.4694, allocations: 5.234 kB / 0.5532 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4694, allocations: 3.938 kB / 0.5532 GB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4694, allocations: 4 kB / 0.5532 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.4696, allocations: 235.4 kB / 0.5534 GB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.216e-05/0.4696, allocations: 96.25 kB / 0.5535 GB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.4696, allocations: 4 kB / 0.5535 GB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.786e-05/0.4697, allocations: 15.98 kB / 0.5535 GB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.4698, allocations: 4 kB / 0.5535 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.4698, allocations: 11.55 kB / 0.5535 GB, free: 5.121 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.436e-05/0.4698, allocations: 87.03 kB / 0.5536 GB, free: 5.039 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4698, allocations: 0 / 0.5536 GB, free: 5.039 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.4701, allocations: 16 kB / 0.5536 GB, free: 5.023 MB / 362.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) * 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 8.58e-05/0.4701, allocations: 107.2 kB / 0.5537 GB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.4703, allocations: 80.31 kB / 0.5538 GB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4703, allocations: 7.938 kB / 0.5538 GB, free: 4.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.951e-05/0.4704, allocations: 40.55 kB / 0.5538 GB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.4705, allocations: 6.969 kB / 0.5538 GB, free: 4.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002596/0.4708, allocations: 122 kB / 0.554 GB, free: 4.688 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.4709, allocations: 0.7044 MB / 0.5547 GB, free: 3.957 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.823e-05/0.471, allocations: 8.875 kB / 0.5547 GB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.471, allocations: 15.44 kB / 0.5547 GB, free: 3.934 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.471, allocations: 0 / 0.5547 GB, free: 3.934 MB / 362.7 MB Notification: Performance of Templates: time 0.002387/0.4734, allocations: 0.8405 MB / 0.5555 GB, free: 3.109 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches