Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001382, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 230.7 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008506/0.0008508, allocations: 91.56 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.879e-05, allocations: 4.219 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1261, allocations: 61.91 MB / 0.4947 GB, free: 1.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3726/0.4988, allocations: 86.39 MB / 0.579 GB, free: 10.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.4991, allocations: 59.98 kB / 0.5791 GB, free: 10.05 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004631/0.5038, allocations: 1.683 MB / 0.5807 GB, free: 8.371 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5038, allocations: 0 / 0.5807 GB, free: 8.371 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.5038, allocations: 0 / 0.5807 GB, free: 8.371 MB / 394.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.0004494/0.5043, allocations: 366.4 kB / 0.5811 GB, free: 7.969 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.5043, allocations: 11.98 kB / 0.5811 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.5044, allocations: 7.906 kB / 0.5811 GB, free: 7.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.5046, allocations: 198.9 kB / 0.5813 GB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.5046, allocations: 0.875 kB / 0.5813 GB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.5046, allocations: 8 kB / 0.5813 GB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001069/0.5048, allocations: 27.95 kB / 0.5813 GB, free: 7.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.5049, allocations: 61.67 kB / 0.5814 GB, free: 7.613 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5049, allocations: 2.953 kB / 0.5814 GB, free: 7.613 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.5049, allocations: 0 / 0.5814 GB, free: 7.613 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.5049, allocations: 4 kB / 0.5814 GB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.5055, allocations: 329 kB / 0.5817 GB, free: 7.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.971e-05/0.5056, allocations: 46.52 kB / 0.5817 GB, free: 7.195 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.285e-05/0.5056, allocations: 24.86 kB / 0.5818 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.5056, allocations: 0 / 0.5818 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000132/0.5058, allocations: 67.5 kB / 0.5818 GB, free: 7.094 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5058, allocations: 4 kB / 0.5818 GB, free: 7.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001771/0.506, allocations: 61.59 kB / 0.5819 GB, free: 7.023 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.506, allocations: 55.41 kB / 0.582 GB, free: 6.957 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.772e-05/0.5061, allocations: 109.9 kB / 0.5821 GB, free: 6.844 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.5061, allocations: 29.7 kB / 0.5821 GB, free: 6.809 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.5062, allocations: 100.3 kB / 0.5822 GB, free: 6.703 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.5062, allocations: 19.72 kB / 0.5822 GB, free: 6.684 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.5063, allocations: 3.938 kB / 0.5822 GB, free: 6.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.5064, allocations: 318.8 kB / 0.5825 GB, free: 6.359 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.322e-05/0.5064, allocations: 16 kB / 0.5825 GB, free: 6.344 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.17e-05/0.5065, allocations: 30.58 kB / 0.5826 GB, free: 6.305 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.701e-05/0.5065, allocations: 19.98 kB / 0.5826 GB, free: 6.285 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5065, allocations: 0 / 0.5826 GB, free: 6.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001273/0.5067, allocations: 78.31 kB / 0.5826 GB, free: 6.203 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.5067, allocations: 8 kB / 0.5827 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.5067, allocations: 3.828 kB / 0.5827 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.5067, allocations: 0 / 0.5827 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.918e-05/0.5068, allocations: 8 kB / 0.5827 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.5068, allocations: 0 / 0.5827 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.966e-05/0.5069, allocations: 24.03 kB / 0.5827 GB, free: 6.164 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.5069, allocations: 0 / 0.5827 GB, free: 6.164 MB / 394.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 () * 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 7.554e-05/0.507, allocations: 114.1 kB / 0.5828 GB, free: 6.047 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.507, allocations: 4 kB / 0.5828 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.365e-05/0.507, allocations: 8.625 kB / 0.5828 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.507, allocations: 7.984 kB / 0.5828 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5071, allocations: 0 / 0.5828 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.5071, allocations: 0 / 0.5828 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.5074, allocations: 319.1 kB / 0.5831 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.5074, allocations: 0 / 0.5831 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.111e-05/0.5074, allocations: 11.94 kB / 0.5831 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5074, allocations: 0 / 0.5831 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.5074, allocations: 4 kB / 0.5831 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.5075, allocations: 192 / 0.5831 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5075, allocations: 0 / 0.5831 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.5077, allocations: 187.3 kB / 0.5833 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.743e-05/0.5077, allocations: 81.17 kB / 0.5834 GB, free: 5.355 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.5077, allocations: 0 / 0.5834 GB, free: 5.355 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/0.5078, allocations: 12.02 kB / 0.5834 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.5079, allocations: 7.984 kB / 0.5834 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.5079, allocations: 4 kB / 0.5834 GB, free: 5.332 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.826e-05/0.508, allocations: 88.38 kB / 0.5835 GB, free: 5.246 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.508, allocations: 0 / 0.5835 GB, free: 5.246 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.5082, allocations: 15.91 kB / 0.5835 GB, free: 5.23 MB / 394.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) * 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.0001291/0.5084, allocations: 107.2 kB / 0.5836 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.5085, allocations: 36 kB / 0.5836 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5085, allocations: 0 / 0.5836 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-05/0.5085, allocations: 23.94 kB / 0.5837 GB, free: 5.059 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.5088, allocations: 20.86 kB / 0.5837 GB, free: 5.043 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.5092, allocations: 158.1 kB / 0.5838 GB, free: 4.863 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.5095, allocations: 0.6963 MB / 0.5845 GB, free: 4.141 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.853e-05/0.5096, allocations: 12.44 kB / 0.5845 GB, free: 4.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.5096, allocations: 15.44 kB / 0.5845 GB, free: 4.113 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5096, allocations: 0 / 0.5845 GB, free: 4.113 MB / 394.7 MB Notification: Performance of Templates: time 0.002734/0.5123, allocations: 0.7174 MB / 0.5852 GB, free: 3.398 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches