Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007416/0.0007416, allocations: 93.81 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2849/0.2849, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.000255, allocations: 8 kB / 465.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2574, allocations: 62.96 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001314/0.2587, allocations: 1.329 MB / 0.5172 GB, free: 36.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006756/0.2594, allocations: 0.5426 MB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.125e-05/0.2595, allocations: 0 / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.319e-05/0.2596, allocations: 7.875 kB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.076e-05/0.2596, allocations: 10.25 kB / 0.5177 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.2599, allocations: 80.7 kB / 0.5178 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.2601, allocations: 95.25 kB / 0.5179 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.2602, allocations: 36.06 kB / 0.5179 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.502e-05/0.2602, allocations: 47 kB / 0.518 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.444e-05/0.2603, allocations: 27.12 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.2603, allocations: 3.031 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.2603, allocations: 3.75 kB / 0.518 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.2604, allocations: 26.22 kB / 0.518 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.61e-05/0.2604, allocations: 54.83 kB / 0.5181 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.435e-05/0.2605, allocations: 50.67 kB / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2605, allocations: 0 / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2605, allocations: 0 / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.2605, allocations: 4 kB / 0.5181 GB, free: 35.57 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004816/0.261, allocations: 406.6 kB / 0.5185 GB, free: 35.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.261, allocations: 8.25 kB / 0.5185 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.2611, allocations: 10.41 kB / 0.5185 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.2613, allocations: 209.1 kB / 0.5187 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.2613, allocations: 6.469 kB / 0.5187 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.2613, allocations: 10.12 kB / 0.5187 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002393/0.2616, allocations: 108.5 kB / 0.5188 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2616, allocations: 4 kB / 0.5188 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.2616, allocations: 0 / 0.5188 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.2616, allocations: 2.875 kB / 0.5188 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.2618, allocations: 58.34 kB / 0.5189 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005376/0.2623, allocations: 401.4 kB / 0.5193 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.2626, allocations: 119.9 kB / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.976e-05/0.2627, allocations: 39.45 kB / 0.5194 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.2627, allocations: 0 / 0.5194 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.263, allocations: 108.1 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.263, allocations: 0 / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003833/0.2634, allocations: 150.3 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.2634, allocations: 58.03 kB / 0.5197 GB, free: 34.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.2635, allocations: 153.6 kB / 0.5199 GB, free: 34.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.2635, allocations: 29.7 kB / 0.5199 GB, free: 34.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.2636, allocations: 109 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.2636, allocations: 18.73 kB / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-06/0.2636, allocations: 0 / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.141e-05/0.2636, allocations: 325 kB / 0.5203 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.2638, allocations: 37.72 kB / 0.5204 GB, free: 33.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.2639, allocations: 60.7 kB / 0.5204 GB, free: 33.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.2641, allocations: 89.14 kB / 0.5205 GB, free: 33.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2641, allocations: 0 / 0.5205 GB, free: 33.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002436/0.2643, allocations: 130.3 kB / 0.5206 GB, free: 33.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.2643, allocations: 9.156 kB / 0.5207 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2643, allocations: 0 / 0.5207 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2644, allocations: 4 kB / 0.5207 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.113e-05/0.2645, allocations: 21.66 kB / 0.5207 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2645, allocations: 0 / 0.5207 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.72e-05/0.2646, allocations: 29.98 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2646, allocations: 2.938 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.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 6.049e-05/0.2646, allocations: 116.3 kB / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.2647, allocations: 14.3 kB / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/0.2647, allocations: 11.5 kB / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2647, allocations: 0 / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2647, allocations: 0 / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2647, allocations: 2.969 kB / 0.5209 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.2651, allocations: 412 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2651, allocations: 2.875 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.2652, allocations: 16.08 kB / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2653, allocations: 2.969 kB / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2653, allocations: 3.281 kB / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2653, allocations: 0 / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2653, allocations: 0 / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003727/0.2657, allocations: 267.1 kB / 0.5215 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.2657, allocations: 84.02 kB / 0.5216 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.2657, allocations: 6.297 kB / 0.5216 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.2659, allocations: 27.23 kB / 0.5216 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.2659, allocations: 12.61 kB / 0.5216 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2659, allocations: 6.234 kB / 0.5217 GB, free: 32.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.17e-05/0.266, allocations: 110.8 kB / 0.5218 GB, free: 32.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.266, allocations: 0 / 0.5218 GB, free: 32.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.2662, allocations: 15.34 kB / 0.5218 GB, free: 32.73 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 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.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 7.351e-05/0.2663, allocations: 112.6 kB / 0.5219 GB, free: 32.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000259/0.2666, allocations: 91.2 kB / 0.522 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2666, allocations: 64 / 0.522 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.2667, allocations: 49.86 kB / 0.522 GB, free: 32.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.267, allocations: 16.83 kB / 0.522 GB, free: 32.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003966/0.2674, allocations: 266.6 kB / 0.5223 GB, free: 32.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.754e-05/0.2675, allocations: 0.6992 MB / 0.523 GB, free: 31.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.2676, allocations: 17.25 kB / 0.523 GB, free: 31.67 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2676, allocations: 3.938 kB / 0.523 GB, free: 31.66 MB / 378.7 MB Notification: Performance of Templates: time 0.002214/0.2698, allocations: 1.332 MB / 0.5243 GB, free: 31.56 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches