Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001202, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1912/0.1912, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 75.86 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09269, allocations: 62.45 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002536/0.09526, allocations: 1.638 MB / 483.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008369/0.09611, allocations: 0.5804 MB / 483.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.629e-05/0.09619, allocations: 0 / 483.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.041e-05/0.09629, allocations: 11.86 kB / 483.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.99e-05/0.09634, allocations: 19.86 kB / 483.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.09664, allocations: 95.69 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.09679, allocations: 107.8 kB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.0969, allocations: 31.97 kB / 483.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.613e-05/0.09697, allocations: 51.78 kB / 484 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.145e-05/0.09704, allocations: 47.81 kB / 484 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.09707, allocations: 8 kB / 484 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.407e-05/0.09709, allocations: 8 kB / 484 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.706e-05/0.09712, allocations: 19.92 kB / 484.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.51e-05/0.09717, allocations: 39.73 kB / 484.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.09729, allocations: 87.64 kB / 484.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.0973, allocations: 0 / 484.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.09731, allocations: 0 / 484.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.09731, allocations: 3.938 kB / 484.2 MB, free: 1.797 MB / 350.1 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.0005268/0.09785, allocations: 411.2 kB / 484.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.09788, allocations: 12.03 kB / 484.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.177e-05/0.09792, allocations: 8.844 kB / 484.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.09813, allocations: 204.1 kB / 484.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.09816, allocations: 8.375 kB / 484.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.09819, allocations: 8.375 kB / 484.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.09844, allocations: 112.4 kB / 484.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.09846, allocations: 0 / 484.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.09848, allocations: 8 kB / 485 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.09849, allocations: 0 / 485 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.09864, allocations: 55.89 kB / 485 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.09922, allocations: 384.4 kB / 485.4 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.09954, allocations: 102.5 kB / 485.5 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.09966, allocations: 36.91 kB / 485.5 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.09968, allocations: 4 kB / 485.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.0999, allocations: 99.3 kB / 485.6 MB, free: 216 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.09991, allocations: 0 / 485.6 MB, free: 216 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003942/0.1003, allocations: 145.5 kB / 485.8 MB, free: 64 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.1004, allocations: 59.34 kB / 485.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1005, allocations: 149.4 kB / 486 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.1005, allocations: 29.64 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.1006, allocations: 100 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.1006, allocations: 19.8 kB / 486.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.1006, allocations: 21.72 kB / 486.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1007, allocations: 322.8 kB / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1009, allocations: 39.97 kB / 486.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.101, allocations: 57.62 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.1012, allocations: 73.69 kB / 486.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1012, allocations: 0 / 486.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000249/0.1014, allocations: 117.5 kB / 486.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1014, allocations: 8.219 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1015, allocations: 8.016 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.1015, allocations: 0 / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.745e-05/0.1016, allocations: 19.88 kB / 486.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.1016, allocations: 4.312 kB / 486.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.326e-05/0.1017, allocations: 23.95 kB / 486.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1017, allocations: 8 kB / 486.8 MB, free: 14.96 MB / 366.1 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.984e-05/0.1018, allocations: 117.8 kB / 486.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.1018, allocations: 11.84 kB / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.1018, allocations: 12.72 kB / 486.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1018, allocations: 0 / 486.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1018, allocations: 0 / 486.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1019, allocations: 3.984 kB / 486.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004663/0.1023, allocations: 402.4 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1023, allocations: 0 / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.924e-05/0.1024, allocations: 15.98 kB / 487.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1024, allocations: 0 / 487.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1024, allocations: 4 kB / 487.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1024, allocations: 0 / 487.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1025, allocations: 0 / 487.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.1029, allocations: 259.2 kB / 487.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.945e-05/0.1029, allocations: 81.02 kB / 487.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.1029, allocations: 7.922 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.1031, allocations: 20.05 kB / 487.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.1031, allocations: 15.98 kB / 487.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1031, allocations: 0 / 487.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.738e-05/0.1032, allocations: 115.2 kB / 487.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1032, allocations: 0 / 487.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.1034, allocations: 12 kB / 487.9 MB, free: 13.8 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.422e-05/0.1035, allocations: 95.25 kB / 487.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.1038, allocations: 95.81 kB / 488 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1038, allocations: 0 / 488 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.1039, allocations: 35.98 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.1042, allocations: 15.98 kB / 488.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007813/0.105, allocations: 286.3 kB / 488.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.1052, allocations: 0.701 MB / 489.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.13e-05/0.1053, allocations: 8.75 kB / 489.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.1053, allocations: 15.44 kB / 489.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1053, allocations: 3.938 kB / 489.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of Templates: time 0.003207/0.1085, allocations: 1.229 MB / 490.3 MB, free: 11.28 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches