Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.00156, allocations: 190.4 kB / 16.78 MB, free: 4.91 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 226.5 MB / 244.1 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007315/0.0007315, allocations: 96.08 kB / 296.1 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3137/0.3137, allocations: 44.82 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002621, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3647, allocations: 62.95 MB / 0.5165 GB, free: 37.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0987/0.4635, allocations: 88.05 MB / 0.6024 GB, free: 1.312 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.4637, allocations: 67.95 kB / 0.6025 GB, free: 1.246 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004442/0.4681, allocations: 1.755 MB / 0.6042 GB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4682, allocations: 0 / 0.6042 GB, free: 15.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.4682, allocations: 8 kB / 0.6042 GB, free: 15.48 MB / 426.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.0004438/0.4686, allocations: 387.2 kB / 0.6046 GB, free: 15.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.4687, allocations: 8.031 kB / 0.6046 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.4687, allocations: 8.844 kB / 0.6046 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.4689, allocations: 192.2 kB / 0.6048 GB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.4689, allocations: 4.375 kB / 0.6048 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.469, allocations: 12.31 kB / 0.6048 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.4691, allocations: 70.23 kB / 0.6049 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.4691, allocations: 4.172 kB / 0.6049 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.4691, allocations: 7.938 kB / 0.6049 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.4692, allocations: 8 kB / 0.6049 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.782e-05/0.4692, allocations: 31.98 kB / 0.6049 GB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.4698, allocations: 356.5 kB / 0.6053 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.734e-05/0.4699, allocations: 42.58 kB / 0.6053 GB, free: 14.22 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.334e-05/0.4699, allocations: 16.92 kB / 0.6053 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.47, allocations: 7.938 kB / 0.6053 GB, free: 14.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000141/0.4701, allocations: 71.28 kB / 0.6054 GB, free: 14.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.4701, allocations: 0 / 0.6054 GB, free: 14.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002101/0.4703, allocations: 89.58 kB / 0.6055 GB, free: 14.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4704, allocations: 55.34 kB / 0.6055 GB, free: 13.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.4705, allocations: 144.5 kB / 0.6057 GB, free: 13.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.4706, allocations: 25.7 kB / 0.6057 GB, free: 13.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.4706, allocations: 103.9 kB / 0.6058 GB, free: 13.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.4706, allocations: 23.78 kB / 0.6058 GB, free: 13.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.4706, allocations: 0 / 0.6058 GB, free: 13.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4708, allocations: 318.8 kB / 0.6061 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-05/0.4708, allocations: 23.98 kB / 0.6062 GB, free: 13.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.672e-05/0.4709, allocations: 30.56 kB / 0.6062 GB, free: 13.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.901e-05/0.471, allocations: 50.7 kB / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.471, allocations: 0 / 0.6062 GB, free: 13.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001337/0.4711, allocations: 89.47 kB / 0.6063 GB, free: 13.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.4711, allocations: 12.06 kB / 0.6063 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.4711, allocations: 0 / 0.6063 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4712, allocations: 0 / 0.6063 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.024e-05/0.4712, allocations: 15.92 kB / 0.6063 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.4712, allocations: 0 / 0.6063 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.836e-05/0.4713, allocations: 12 kB / 0.6064 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.291e-06/0.4713, allocations: 0 / 0.6064 GB, free: 13.07 MB / 426.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.431e-05/0.4714, allocations: 129.8 kB / 0.6065 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.4714, allocations: 15.89 kB / 0.6065 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.4715, allocations: 8.719 kB / 0.6065 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4715, allocations: 3.938 kB / 0.6065 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.4715, allocations: 4 kB / 0.6065 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.4715, allocations: 0 / 0.6065 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/0.4718, allocations: 342.5 kB / 0.6068 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4719, allocations: 0 / 0.6068 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.4719, allocations: 11.88 kB / 0.6068 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.4719, allocations: 4 kB / 0.6069 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.4719, allocations: 7.984 kB / 0.6069 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.472, allocations: 4 kB / 0.6069 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.472, allocations: 0 / 0.6069 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.4722, allocations: 179.5 kB / 0.607 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.4722, allocations: 92.97 kB / 0.6071 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.4723, allocations: 4 kB / 0.6071 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.692e-05/0.4723, allocations: 4 kB / 0.6071 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.4724, allocations: 12.05 kB / 0.6071 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.4724, allocations: 7.984 kB / 0.6071 GB, free: 12.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.117e-05/0.4725, allocations: 106.7 kB / 0.6073 GB, free: 12.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4725, allocations: 3.938 kB / 0.6073 GB, free: 12.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000224/0.4727, allocations: 16 kB / 0.6073 GB, free: 12.03 MB / 426.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.0001091/0.4728, allocations: 99.19 kB / 0.6074 GB, free: 11.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.473, allocations: 48.52 kB / 0.6074 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.473, allocations: 0 / 0.6074 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.931e-05/0.473, allocations: 28.05 kB / 0.6074 GB, free: 11.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.4733, allocations: 19.92 kB / 0.6075 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004943/0.4739, allocations: 253.5 kB / 0.6077 GB, free: 11.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.4741, allocations: 0.6965 MB / 0.6084 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.4741, allocations: 15.44 kB / 0.6084 GB, free: 10.81 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4742, allocations: 3.938 kB / 0.6084 GB, free: 10.81 MB / 426.7 MB Notification: Performance of Templates: time 0.002444/0.4766, allocations: 1.14 MB / 0.6095 GB, free: 9.668 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches