Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001797/0.001797, allocations: 184 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008891/0.0008891, allocations: 90.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2164/0.2164, allocations: 43.56 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003183, allocations: 19.98 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1229, allocations: 58.85 MB / 490.2 MB, free: 8.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.399/0.522, allocations: 86.13 MB / 0.5629 GB, free: 13.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.5223, allocations: 61.34 kB / 0.5629 GB, free: 13.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004717/0.527, allocations: 1.661 MB / 0.5645 GB, free: 12.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.527, allocations: 4 kB / 0.5645 GB, free: 12.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.5271, allocations: 0 / 0.5645 GB, free: 12.19 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005419/0.5276, allocations: 383.1 kB / 0.5649 GB, free: 11.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.5277, allocations: 16.03 kB / 0.5649 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.289e-05/0.5277, allocations: 7.906 kB / 0.5649 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.5279, allocations: 189.6 kB / 0.5651 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.5279, allocations: 9.062 kB / 0.5651 GB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.528, allocations: 7.562 kB / 0.5651 GB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.5281, allocations: 68.73 kB / 0.5652 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.5281, allocations: 3.938 kB / 0.5652 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.5282, allocations: 7.938 kB / 0.5652 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.5282, allocations: 0 / 0.5652 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.463e-05/0.5283, allocations: 41.05 kB / 0.5652 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006053/0.5289, allocations: 355.5 kB / 0.5656 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.529, allocations: 50.38 kB / 0.5656 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.529, allocations: 3.438 kB / 0.5656 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.5292, allocations: 77.78 kB / 0.5657 GB, free: 10.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.5292, allocations: 0 / 0.5657 GB, free: 10.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002225/0.5294, allocations: 84.2 kB / 0.5658 GB, free: 10.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.5295, allocations: 55.41 kB / 0.5658 GB, free: 10.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.5296, allocations: 131.3 kB / 0.566 GB, free: 10.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.5296, allocations: 32.88 kB / 0.566 GB, free: 10.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.5297, allocations: 90.77 kB / 0.5661 GB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.5297, allocations: 30.89 kB / 0.5661 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.5297, allocations: 0 / 0.5661 GB, free: 10.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.5299, allocations: 317.8 kB / 0.5664 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.511e-05/0.5299, allocations: 19.17 kB / 0.5664 GB, free: 10.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/0.53, allocations: 37.25 kB / 0.5665 GB, free: 10.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.183e-05/0.53, allocations: 22.31 kB / 0.5665 GB, free: 10.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.53, allocations: 0 / 0.5665 GB, free: 10.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001316/0.5302, allocations: 87.02 kB / 0.5666 GB, free: 10.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5302, allocations: 4 kB / 0.5666 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.5302, allocations: 7.953 kB / 0.5666 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.5302, allocations: 0 / 0.5666 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.769e-05/0.5303, allocations: 11.25 kB / 0.5666 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.5303, allocations: 0 / 0.5666 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.807e-05/0.5304, allocations: 12.92 kB / 0.5666 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.5304, allocations: 4.219 kB / 0.5666 GB, free: 10.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.838e-05/0.5305, allocations: 124.3 kB / 0.5667 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.5305, allocations: 11.84 kB / 0.5667 GB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.029e-05/0.5306, allocations: 15.64 kB / 0.5668 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.5306, allocations: 3.953 kB / 0.5668 GB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5306, allocations: 0 / 0.5668 GB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.5306, allocations: 3.984 kB / 0.5668 GB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/0.5309, allocations: 347.9 kB / 0.5671 GB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.531, allocations: 8.125 kB / 0.5671 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.765e-05/0.531, allocations: 4 kB / 0.5671 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.531, allocations: 7.891 kB / 0.5671 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.531, allocations: 0 / 0.5671 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.531, allocations: 0 / 0.5671 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5311, allocations: 4 kB / 0.5671 GB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.5313, allocations: 187.2 kB / 0.5673 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.5313, allocations: 81.05 kB / 0.5674 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.5314, allocations: 15.5 kB / 0.5674 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/0.5315, allocations: 4 kB / 0.5674 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.5315, allocations: 7.984 kB / 0.5674 GB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/0.5315, allocations: 4 kB / 0.5674 GB, free: 9.168 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.484e-05/0.5316, allocations: 115.5 kB / 0.5675 GB, free: 9.066 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5316, allocations: 0 / 0.5675 GB, free: 9.066 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002194/0.5318, allocations: 19.88 kB / 0.5675 GB, free: 9.051 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001205/0.532, allocations: 95.25 kB / 0.5676 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.5321, allocations: 50.34 kB / 0.5677 GB, free: 8.906 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5321, allocations: 0 / 0.5677 GB, free: 8.906 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.524e-05/0.5322, allocations: 19.67 kB / 0.5677 GB, free: 8.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.5324, allocations: 12.61 kB / 0.5677 GB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005212/0.5329, allocations: 248.8 kB / 0.5679 GB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.5332, allocations: 0.7004 MB / 0.5686 GB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.399e-05/0.5332, allocations: 4.438 kB / 0.5686 GB, free: 7.891 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.042e-05/0.5333, allocations: 15.42 kB / 0.5686 GB, free: 7.875 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.5333, allocations: 0 / 0.5686 GB, free: 7.875 MB / 378.7 MB Notification: Performance of Templates: time 0.002823/0.5361, allocations: 0.8114 MB / 0.5694 GB, free: 7.078 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches