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.0008256/0.0008258, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009523/0.0009526, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 247.5 MB, free: 9.484 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1864/0.1864, allocations: 46.18 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.000228, allocations: 8 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09581, allocations: 63.57 MB / 483.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001753/0.09759, allocations: 1.345 MB / 485.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009848/0.0986, allocations: 0.5728 MB / 485.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.676e-05/0.0987, allocations: 4 kB / 485.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.449e-05/0.0988, allocations: 3.938 kB / 485.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.959e-05/0.09886, allocations: 23.8 kB / 485.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.09918, allocations: 75.91 kB / 485.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.09933, allocations: 99.75 kB / 485.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.09945, allocations: 27.98 kB / 485.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.544e-05/0.09953, allocations: 31.84 kB / 485.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.0996, allocations: 47.77 kB / 486 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.09963, allocations: 0 / 486 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.09965, allocations: 4 kB / 486 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.264e-05/0.09967, allocations: 11.94 kB / 486 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.09973, allocations: 61.48 kB / 486 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.981e-05/0.09985, allocations: 56.09 kB / 486.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.09986, allocations: 7.938 kB / 486.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09987, allocations: 0 / 486.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.09988, allocations: 4 kB / 486.1 MB, free: 1.727 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.0005806/0.1005, allocations: 395.3 kB / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1005, allocations: 8.875 kB / 486.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.1006, allocations: 16.75 kB / 486.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.1008, allocations: 204.1 kB / 486.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1008, allocations: 384 / 486.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.1008, allocations: 12.38 kB / 486.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.1011, allocations: 121.2 kB / 486.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1011, allocations: 0 / 486.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1012, allocations: 8 kB / 486.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1012, allocations: 0 / 486.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.1013, allocations: 59.95 kB / 486.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006867/0.102, allocations: 400.4 kB / 487.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.1024, allocations: 110.5 kB / 487.4 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1025, allocations: 40.91 kB / 487.4 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.1026, allocations: 7.938 kB / 487.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.1028, allocations: 111.3 kB / 487.6 MB, free: 104 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.1028, allocations: 0 / 487.6 MB, free: 104 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004752/0.1033, allocations: 153.5 kB / 487.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.1034, allocations: 55.34 kB / 487.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.1035, allocations: 157.1 kB / 487.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.1035, allocations: 29.7 kB / 488 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.934e-05/0.1036, allocations: 92.14 kB / 488 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.1036, allocations: 19.8 kB / 488.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.1037, allocations: 17.72 kB / 488.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1038, allocations: 322.8 kB / 488.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.1039, allocations: 39.97 kB / 488.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.1041, allocations: 57.62 kB / 488.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.1043, allocations: 81.69 kB / 488.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1043, allocations: 0 / 488.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003108/0.1046, allocations: 133.4 kB / 488.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1047, allocations: 10.44 kB / 488.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1047, allocations: 3.984 kB / 488.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1047, allocations: 8.031 kB / 488.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.963e-05/0.1048, allocations: 15.94 kB / 488.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1048, allocations: 288 / 488.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.1049, allocations: 28.05 kB / 488.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.1049, allocations: 0 / 488.8 MB, free: 14.84 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 0.000103/0.1051, allocations: 133.7 kB / 488.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.1051, allocations: 11.84 kB / 488.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.1051, allocations: 8.719 kB / 488.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1051, allocations: 4 kB / 488.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1051, allocations: 0 / 488.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1051, allocations: 3.984 kB / 488.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005309/0.1057, allocations: 406.3 kB / 489.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1057, allocations: 0 / 489.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.985e-05/0.1058, allocations: 11.98 kB / 489.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.1058, allocations: 4 kB / 489.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1058, allocations: 8 kB / 489.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1058, allocations: 4 kB / 489.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1058, allocations: 0 / 489.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004758/0.1063, allocations: 267.3 kB / 489.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.1064, allocations: 85 kB / 489.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.1064, allocations: 3.984 kB / 489.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.1066, allocations: 28.05 kB / 489.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.1066, allocations: 15.97 kB / 489.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.1066, allocations: 4 kB / 489.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.191e-05/0.1067, allocations: 103.3 kB / 489.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1067, allocations: 0 / 489.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.107, allocations: 20 kB / 489.9 MB, free: 13.64 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 0.000109/0.1071, allocations: 95.23 kB / 490 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.1074, allocations: 100.3 kB / 490.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1074, allocations: 0 / 490.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.1076, allocations: 48.03 kB / 490.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.1079, allocations: 16 kB / 490.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009346/0.1088, allocations: 340.7 kB / 490.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1091, allocations: 0.7005 MB / 491.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.1091, allocations: 15.44 kB / 491.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1091, allocations: 0 / 491.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of Templates: time 0.002844/0.112, allocations: 1.314 MB / 492.5 MB, free: 10.95 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 -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