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.001508/0.001507, allocations: 186.9 kB / 16.41 MB, free: 5.727 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.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001136/0.001136, allocations: 90.05 kB / 270.9 MB, free: 8.398 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.5055/0.5055, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006655/0.0006656, allocations: 12 kB / 431.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1287, allocations: 58.86 MB / 490.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5843, allocations: 86.12 MB / 0.5628 GB, free: 500 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.5845, allocations: 63.97 kB / 0.5629 GB, free: 436 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006715/0.5913, allocations: 1.659 MB / 0.5645 GB, free: 14.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5913, allocations: 0 / 0.5645 GB, free: 14.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.5914, allocations: 4 kB / 0.5645 GB, free: 14.78 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.0006013/0.592, allocations: 391.1 kB / 0.5649 GB, free: 14.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.592, allocations: 8.031 kB / 0.5649 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.5921, allocations: 15.03 kB / 0.5649 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.5923, allocations: 186.4 kB / 0.5651 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.5924, allocations: 8 kB / 0.5651 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.5924, allocations: 4 kB / 0.5651 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.5926, allocations: 73.66 kB / 0.5652 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.5927, allocations: 3.938 kB / 0.5652 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.5927, allocations: 7.938 kB / 0.5652 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5927, allocations: 0 / 0.5652 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.5928, allocations: 40.95 kB / 0.5652 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007607/0.5936, allocations: 360.5 kB / 0.5656 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.5938, allocations: 49.08 kB / 0.5656 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.5938, allocations: 0 / 0.5656 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.594, allocations: 79.44 kB / 0.5657 GB, free: 13.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.234e-06/0.594, allocations: 0 / 0.5657 GB, free: 13.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002856/0.5943, allocations: 77.59 kB / 0.5658 GB, free: 13.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.5944, allocations: 51.41 kB / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.5945, allocations: 134.6 kB / 0.5659 GB, free: 13.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.5946, allocations: 25.7 kB / 0.566 GB, free: 13.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.202e-05/0.5947, allocations: 168 kB / 0.5661 GB, free: 12.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.5947, allocations: 23.88 kB / 0.5661 GB, free: 12.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.5947, allocations: 0 / 0.5661 GB, free: 12.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5949, allocations: 314.8 kB / 0.5664 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.153e-05/0.5949, allocations: 19.98 kB / 0.5665 GB, free: 12.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.754e-05/0.595, allocations: 34.52 kB / 0.5665 GB, free: 12.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.92e-05/0.5951, allocations: 16 kB / 0.5665 GB, free: 12.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5951, allocations: 4 kB / 0.5665 GB, free: 12.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000203/0.5953, allocations: 90.14 kB / 0.5666 GB, free: 12.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.5954, allocations: 4 kB / 0.5666 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.5954, allocations: 7.016 kB / 0.5666 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.5954, allocations: 4 kB / 0.5666 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.5955, allocations: 4 kB / 0.5666 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.5955, allocations: 4 kB / 0.5666 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.5957, allocations: 7.984 kB / 0.5666 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.5957, allocations: 9.312 kB / 0.5666 GB, free: 12.4 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 0.0001231/0.5958, allocations: 127.2 kB / 0.5668 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.5958, allocations: 7.906 kB / 0.5668 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.5959, allocations: 12.72 kB / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.5959, allocations: 3.953 kB / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5959, allocations: 0 / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.596, allocations: 7.969 kB / 0.5668 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.5965, allocations: 342.4 kB / 0.5671 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.5965, allocations: 7.984 kB / 0.5671 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.968e-05/0.5966, allocations: 8.188 kB / 0.5671 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.5966, allocations: 3.953 kB / 0.5671 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.5966, allocations: 7.812 kB / 0.5671 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5966, allocations: 0 / 0.5671 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5967, allocations: 0 / 0.5671 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.597, allocations: 194.5 kB / 0.5673 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/0.597, allocations: 81.02 kB / 0.5674 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.5971, allocations: 8.016 kB / 0.5674 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.5972, allocations: 12.02 kB / 0.5674 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.5973, allocations: 11.98 kB / 0.5674 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.5973, allocations: 3.938 kB / 0.5674 GB, free: 11.49 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.5974, allocations: 106.1 kB / 0.5675 GB, free: 11.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5974, allocations: 0 / 0.5675 GB, free: 11.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000321/0.5978, allocations: 16 kB / 0.5676 GB, free: 11.37 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.0001481/0.5979, allocations: 103.8 kB / 0.5676 GB, free: 11.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.5981, allocations: 47.92 kB / 0.5677 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5982, allocations: 0 / 0.5677 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/0.5983, allocations: 20 kB / 0.5677 GB, free: 11.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.5986, allocations: 16.53 kB / 0.5677 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007525/0.5994, allocations: 271 kB / 0.568 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.5997, allocations: 0.7043 MB / 0.5687 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.842e-05/0.5997, allocations: 11.44 kB / 0.5687 GB, free: 10.15 MB / 394.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5997, allocations: 4 kB / 0.5687 GB, free: 10.14 MB / 394.7 MB Notification: Performance of Templates: time 0.003485/0.6032, allocations: 1.126 MB / 0.5698 GB, free: 9.027 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