Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 110.9 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 193.3 kB / 18.25 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1979/0.1979, allocations: 44.18 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 61 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002701/0.1042, allocations: 1.685 MB / 470.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008746/0.1051, allocations: 0.5377 MB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.1052, allocations: 3.938 kB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.1053, allocations: 3.938 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-05/0.1054, allocations: 23.91 kB / 471 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.1057, allocations: 83.58 kB / 471 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.1058, allocations: 111.8 kB / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.106, allocations: 31.92 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.99e-05/0.106, allocations: 47.84 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.683e-05/0.1061, allocations: 39.77 kB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.1061, allocations: 12 kB / 471.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.516e-05/0.1062, allocations: 8 kB / 471.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.1062, allocations: 23.92 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.975e-05/0.1063, allocations: 35.8 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1064, allocations: 91.91 kB / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1064, allocations: 0 / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1064, allocations: 0 / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.1064, allocations: 0 / 471.4 MB, free: 12 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.0005764/0.107, allocations: 415.1 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.107, allocations: 8.031 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.1071, allocations: 12.84 kB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.1073, allocations: 204 kB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.1073, allocations: 8.375 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.1073, allocations: 8.375 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.1076, allocations: 102 kB / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1076, allocations: 0 / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.1076, allocations: 8 kB / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.1076, allocations: 0 / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.1078, allocations: 59.83 kB / 472.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/0.1085, allocations: 388.4 kB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.1088, allocations: 98.52 kB / 472.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1089, allocations: 40.91 kB / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.1089, allocations: 0 / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.1092, allocations: 95.36 kB / 472.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.1092, allocations: 0 / 472.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004469/0.1097, allocations: 141.5 kB / 473 MB, free: 10.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.1097, allocations: 63.34 kB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.1099, allocations: 160.1 kB / 473.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1099, allocations: 25.7 kB / 473.2 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.498e-05/0.1099, allocations: 104 kB / 473.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.11, allocations: 11.8 kB / 473.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-05/0.11, allocations: 25.72 kB / 473.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1101, allocations: 322.8 kB / 473.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.1103, allocations: 39.97 kB / 473.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1104, allocations: 53.62 kB / 473.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.1106, allocations: 73.69 kB / 473.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1106, allocations: 0 / 473.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002743/0.1109, allocations: 125.5 kB / 474 MB, free: 9.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.1109, allocations: 8.219 kB / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1109, allocations: 4.031 kB / 474 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.111, allocations: 4 kB / 474 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1111, allocations: 23.86 kB / 474 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.1111, allocations: 0 / 474 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.407e-05/0.1112, allocations: 19.97 kB / 474 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.1112, allocations: 4 kB / 474 MB, free: 9.16 MB / 350.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 8.853e-05/0.1113, allocations: 117.8 kB / 474.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.1113, allocations: 15.84 kB / 474.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.911e-05/0.1114, allocations: 12.72 kB / 474.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1114, allocations: 4 kB / 474.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1114, allocations: 0 / 474.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1114, allocations: 3.984 kB / 474.2 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005048/0.1119, allocations: 394.4 kB / 474.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1119, allocations: 0 / 474.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/0.112, allocations: 15.98 kB / 474.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.112, allocations: 0 / 474.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.112, allocations: 4 kB / 474.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1121, allocations: 0 / 474.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1121, allocations: 0 / 474.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004487/0.1125, allocations: 259.6 kB / 474.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.488e-05/0.1126, allocations: 89.03 kB / 474.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.1126, allocations: 0 / 474.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1127, allocations: 20.05 kB / 474.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.215e-05/0.1128, allocations: 19.91 kB / 475 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.1128, allocations: 4 kB / 475 MB, free: 8.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.782e-05/0.1129, allocations: 108.8 kB / 475.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1129, allocations: 0 / 475.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.1131, allocations: 16 kB / 475.1 MB, free: 8 MB / 350.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 9.117e-05/0.1132, allocations: 99.77 kB / 475.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.1135, allocations: 91.83 kB / 475.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1135, allocations: 0 / 475.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.1137, allocations: 47.95 kB / 475.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.114, allocations: 26.05 kB / 475.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004867/0.1145, allocations: 239.5 kB / 475.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.1147, allocations: 0.7002 MB / 476.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.797e-05/0.1148, allocations: 16.48 kB / 476.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.1148, allocations: 11.44 kB / 476.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1148, allocations: 0 / 476.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of Templates: time 0.003323/0.1182, allocations: 1.124 MB / 477.4 MB, free: 5.602 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches