Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009691/0.0009692, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.316/1.316, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.000717/0.000717, allocations: 89.36 kB / 271.9 MB, free: 8.258 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.3155/0.3155, allocations: 43.57 MB / 363.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 16 kB / 432.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 58.85 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.4171, allocations: 86.15 MB / 0.5641 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4174, allocations: 65.22 kB / 0.5641 GB, free: 80 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004376/0.4217, allocations: 1.667 MB / 0.5657 GB, free: 14.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4218, allocations: 0 / 0.5657 GB, free: 14.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.4218, allocations: 4 kB / 0.5657 GB, free: 14.43 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.0004637/0.4223, allocations: 374.9 kB / 0.5661 GB, free: 14.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4223, allocations: 8.031 kB / 0.5661 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.4224, allocations: 9.609 kB / 0.5661 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.4226, allocations: 204.1 kB / 0.5663 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.4226, allocations: 4.375 kB / 0.5663 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.4226, allocations: 8.375 kB / 0.5663 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.4228, allocations: 74.03 kB / 0.5664 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.4228, allocations: 4.172 kB / 0.5664 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.4228, allocations: 11.92 kB / 0.5664 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.4228, allocations: 0 / 0.5664 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.304e-05/0.4229, allocations: 44.98 kB / 0.5665 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.4235, allocations: 344.6 kB / 0.5668 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.4236, allocations: 50.56 kB / 0.5668 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.439e-05/0.4236, allocations: 20.92 kB / 0.5669 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.4236, allocations: 4 kB / 0.5669 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.4238, allocations: 67.3 kB / 0.5669 GB, free: 13.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.4238, allocations: 0 / 0.5669 GB, free: 13.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002102/0.424, allocations: 89.52 kB / 0.567 GB, free: 12.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.4241, allocations: 55.34 kB / 0.5671 GB, free: 12.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.4242, allocations: 137.8 kB / 0.5672 GB, free: 12.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.4242, allocations: 33.7 kB / 0.5672 GB, free: 12.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.824e-05/0.4243, allocations: 97.47 kB / 0.5673 GB, free: 12.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.4243, allocations: 26.69 kB / 0.5673 GB, free: 12.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-06/0.4243, allocations: 0 / 0.5673 GB, free: 12.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4244, allocations: 318.8 kB / 0.5676 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.4245, allocations: 15.98 kB / 0.5677 GB, free: 12.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.092e-05/0.4246, allocations: 38.56 kB / 0.5677 GB, free: 12.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.186e-05/0.4246, allocations: 54.5 kB / 0.5677 GB, free: 12.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4246, allocations: 0 / 0.5677 GB, free: 12.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001281/0.4248, allocations: 86.16 kB / 0.5678 GB, free: 12.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4248, allocations: 8 kB / 0.5678 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4248, allocations: 0 / 0.5678 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.4248, allocations: 3.828 kB / 0.5678 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.786e-05/0.4249, allocations: 19.86 kB / 0.5679 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.4249, allocations: 5.391 kB / 0.5679 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.312e-05/0.425, allocations: 8 kB / 0.5679 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.425, allocations: 0 / 0.5679 GB, free: 12.02 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 () * 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.372e-05/0.4251, allocations: 122.6 kB / 0.568 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.4251, allocations: 7.906 kB / 0.568 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.4252, allocations: 12.7 kB / 0.568 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.4252, allocations: 4.438 kB / 0.568 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.4252, allocations: 4 kB / 0.568 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4252, allocations: 4 kB / 0.568 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003437/0.4255, allocations: 346.4 kB / 0.5684 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4255, allocations: 1.062 kB / 0.5684 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.682e-05/0.4256, allocations: 7.938 kB / 0.5684 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4256, allocations: 0.9375 kB / 0.5684 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.4256, allocations: 4 kB / 0.5684 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4256, allocations: 3.984 kB / 0.5684 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4256, allocations: 0 / 0.5684 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.4259, allocations: 190.4 kB / 0.5686 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.4259, allocations: 92.97 kB / 0.5686 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.426, allocations: 1.875 kB / 0.5686 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.809e-05/0.4261, allocations: 8 kB / 0.5686 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.4261, allocations: 7.984 kB / 0.5687 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.4261, allocations: 7.984 kB / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.212e-05/0.4262, allocations: 107.4 kB / 0.5688 GB, free: 11.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4262, allocations: 64 / 0.5688 GB, free: 11.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002148/0.4264, allocations: 27.94 kB / 0.5688 GB, free: 11 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) * 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.0001145/0.4265, allocations: 99.77 kB / 0.5689 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000133/0.4267, allocations: 51.91 kB / 0.5689 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.4267, allocations: 0 / 0.5689 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.847e-05/0.4267, allocations: 23.98 kB / 0.569 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.427, allocations: 21.45 kB / 0.569 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005152/0.4276, allocations: 275 kB / 0.5692 GB, free: 10.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.4278, allocations: 0.6965 MB / 0.5699 GB, free: 9.781 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.4279, allocations: 19.42 kB / 0.5699 GB, free: 9.766 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4279, allocations: 0 / 0.5699 GB, free: 9.766 MB / 394.7 MB Notification: Performance of Templates: time 0.002398/0.4303, allocations: 1.141 MB / 0.5711 GB, free: 8.641 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches