Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008634/0.0008634, allocations: 175.3 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000707/0.0007073, allocations: 84.8 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.28/0.28, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003249, allocations: 16 kB / 432 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08764, allocations: 58.86 MB / 490.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001539/0.08922, allocations: 1.31 MB / 492.1 MB, free: 9.324 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007467/0.08998, allocations: 0.5622 MB / 492.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.708e-05/0.09006, allocations: 4 kB / 492.7 MB, free: 8.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.427e-05/0.09016, allocations: 11.92 kB / 492.7 MB, free: 8.738 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.121e-05/0.09021, allocations: 7.875 kB / 492.7 MB, free: 8.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.09048, allocations: 71.91 kB / 492.8 MB, free: 8.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.09062, allocations: 99.69 kB / 492.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.632e-05/0.09073, allocations: 31.95 kB / 492.9 MB, free: 8.531 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.37e-05/0.0908, allocations: 43.83 kB / 493 MB, free: 8.488 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.09086, allocations: 31.84 kB / 493 MB, free: 8.457 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.09089, allocations: 4 kB / 493 MB, free: 8.453 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.19e-05/0.0909, allocations: 4 kB / 493 MB, free: 8.449 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.09093, allocations: 19.86 kB / 493 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.135e-05/0.09099, allocations: 57.5 kB / 493.1 MB, free: 8.367 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.805e-05/0.09107, allocations: 60.09 kB / 493.1 MB, free: 8.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.09108, allocations: 0 / 493.1 MB, free: 8.309 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09109, allocations: 0 / 493.1 MB, free: 8.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.0911, allocations: 0 / 493.1 MB, free: 8.309 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.0005373/0.09164, allocations: 399.2 kB / 493.5 MB, free: 7.871 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.09168, allocations: 8.031 kB / 493.5 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.09172, allocations: 12.84 kB / 493.5 MB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.09191, allocations: 215.8 kB / 493.8 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.09194, allocations: 12.31 kB / 493.8 MB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.09197, allocations: 8.375 kB / 493.8 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.09224, allocations: 106 kB / 493.9 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.09226, allocations: 0 / 493.9 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.09227, allocations: 7.938 kB / 493.9 MB, free: 7.469 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.09228, allocations: 8 kB / 493.9 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.09245, allocations: 51.91 kB / 493.9 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.09308, allocations: 400.5 kB / 494.3 MB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.09342, allocations: 118.5 kB / 494.5 MB, free: 6.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.09355, allocations: 48.91 kB / 494.5 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.09357, allocations: 0 / 494.5 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.09382, allocations: 103.4 kB / 494.6 MB, free: 6.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.09384, allocations: 0 / 494.6 MB, free: 6.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004311/0.09427, allocations: 157.5 kB / 494.8 MB, free: 6.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.09432, allocations: 59.34 kB / 494.8 MB, free: 6.449 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.09444, allocations: 145.8 kB / 495 MB, free: 6.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.09446, allocations: 29.7 kB / 495 MB, free: 6.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.09452, allocations: 104 kB / 495.1 MB, free: 6.156 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.09455, allocations: 11.81 kB / 495.1 MB, free: 6.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.09456, allocations: 8 kB / 495.1 MB, free: 6.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.09466, allocations: 322.8 kB / 495.4 MB, free: 5.812 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.09478, allocations: 35.97 kB / 495.5 MB, free: 5.777 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.09492, allocations: 61.69 kB / 495.5 MB, free: 5.711 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.09514, allocations: 85.75 kB / 495.6 MB, free: 5.621 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.09515, allocations: 0 / 495.6 MB, free: 5.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002732/0.09543, allocations: 125.5 kB / 495.7 MB, free: 5.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.09546, allocations: 11.97 kB / 495.7 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.09547, allocations: 0 / 495.7 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.09549, allocations: 4 kB / 495.7 MB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.408e-05/0.09559, allocations: 19.98 kB / 495.8 MB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.0956, allocations: 3.938 kB / 495.8 MB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.213e-05/0.0957, allocations: 27.97 kB / 495.8 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-06/0.09571, allocations: 320 / 495.8 MB, free: 5.426 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 7.525e-05/0.0958, allocations: 121.8 kB / 495.9 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.09582, allocations: 11.84 kB / 495.9 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.05e-05/0.09586, allocations: 16.7 kB / 495.9 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.09586, allocations: 4 kB / 495.9 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.09587, allocations: 0 / 495.9 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.09588, allocations: 3.938 kB / 495.9 MB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004714/0.09636, allocations: 402.4 kB / 496.3 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.09637, allocations: 4 kB / 496.3 MB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.09646, allocations: 11.98 kB / 496.3 MB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.09647, allocations: 7.984 kB / 496.4 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.09649, allocations: 4 kB / 496.4 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.09649, allocations: 4 kB / 496.4 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.0965, allocations: 0 / 496.4 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.09693, allocations: 259.3 kB / 496.6 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.055e-05/0.09698, allocations: 92.94 kB / 496.7 MB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.09701, allocations: 4 kB / 496.7 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.09715, allocations: 27.98 kB / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.0972, allocations: 15.97 kB / 496.8 MB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.09721, allocations: 0 / 496.8 MB, free: 4.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.181e-05/0.09729, allocations: 115.2 kB / 496.9 MB, free: 4.246 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0973, allocations: 0 / 496.9 MB, free: 4.246 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002123/0.09751, allocations: 16.09 kB / 496.9 MB, free: 4.23 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.807e-05/0.0976, allocations: 103.2 kB / 497 MB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.09788, allocations: 91.83 kB / 497.1 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.09789, allocations: 4 kB / 497.1 MB, free: 4.023 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.09803, allocations: 48.03 kB / 497.1 MB, free: 3.977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.09831, allocations: 15.98 kB / 497.1 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.09878, allocations: 274.8 kB / 497.4 MB, free: 3.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/0.09901, allocations: 0.7003 MB / 498.1 MB, free: 2.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/0.09905, allocations: 15.38 kB / 498.1 MB, free: 2.918 MB / 378.7 MB Notification: Performance of SimCode: time 1.953e-06/0.09906, allocations: 4 kB / 498.1 MB, free: 2.914 MB / 378.7 MB Notification: Performance of Templates: time 0.002348/0.1014, allocations: 1.322 MB / 499.5 MB, free: 1.59 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches