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.001697/0.001697, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.002364/0.002364, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.448/1.448, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2109/0.2109, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3988, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002707/0.4016, allocations: 1.633 MB / 0.5205 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.4024, allocations: 0.5534 MB / 0.521 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.479e-05/0.4025, allocations: 2.375 kB / 0.521 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.4026, allocations: 10.03 kB / 0.521 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.243e-05/0.4027, allocations: 16.19 kB / 0.521 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.403, allocations: 91.89 kB / 0.5211 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.4032, allocations: 113.5 kB / 0.5212 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.4034, allocations: 33.72 kB / 0.5213 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9e-05/0.4035, allocations: 48.97 kB / 0.5213 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.302e-05/0.4035, allocations: 41.53 kB / 0.5214 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.4036, allocations: 8.344 kB / 0.5214 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.622e-05/0.4036, allocations: 7.656 kB / 0.5214 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.4036, allocations: 24.06 kB / 0.5214 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.4037, allocations: 36.16 kB / 0.5214 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.4038, allocations: 95.03 kB / 0.5215 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4038, allocations: 0 / 0.5215 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4038, allocations: 4 kB / 0.5215 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.4039, allocations: 1.969 kB / 0.5215 GB, free: 1.82 MB / 382.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.0005991/0.4045, allocations: 410 kB / 0.5219 GB, free: 1.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.4045, allocations: 8.438 kB / 0.5219 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.4045, allocations: 10.97 kB / 0.5219 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.4048, allocations: 208.2 kB / 0.5221 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4048, allocations: 7.719 kB / 0.5221 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.4048, allocations: 9.938 kB / 0.5222 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.4051, allocations: 106 kB / 0.5223 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.4051, allocations: 0 / 0.5223 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.4052, allocations: 1.547 kB / 0.5223 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4052, allocations: 1.156 kB / 0.5223 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.4053, allocations: 59.19 kB / 0.5223 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006572/0.406, allocations: 381.7 kB / 0.5227 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.4064, allocations: 105.7 kB / 0.5228 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.4065, allocations: 37.25 kB / 0.5228 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.4065, allocations: 5.812 kB / 0.5228 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.4068, allocations: 104 kB / 0.5229 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.4068, allocations: 1.219 kB / 0.5229 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004607/0.4072, allocations: 141.3 kB / 0.5231 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.4073, allocations: 57.08 kB / 0.5231 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.4074, allocations: 151.7 kB / 0.5233 GB, free: 456 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.4074, allocations: 27.34 kB / 0.5233 GB, free: 424 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.4075, allocations: 103.1 kB / 0.5234 GB, free: 324 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.4075, allocations: 24.17 kB / 0.5234 GB, free: 304 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.4076, allocations: 23.98 kB / 0.5234 GB, free: 284 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.122e-05/0.4077, allocations: 320.4 kB / 0.5237 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.4078, allocations: 39.98 kB / 0.5238 GB, free: 15.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.4079, allocations: 52.77 kB / 0.5238 GB, free: 15.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.4082, allocations: 70.56 kB / 0.5239 GB, free: 15.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4082, allocations: 0 / 0.5239 GB, free: 15.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003031/0.4085, allocations: 126.3 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.4085, allocations: 11.05 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4085, allocations: 0 / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4085, allocations: 5.078 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.4086, allocations: 15.17 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4087, allocations: 1.859 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.4088, allocations: 25.7 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.4088, allocations: 2.219 kB / 0.5241 GB, free: 15.81 MB / 398.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 9.111e-05/0.4089, allocations: 120.3 kB / 0.5242 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.064e-05/0.4089, allocations: 16.83 kB / 0.5242 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.409, allocations: 12.33 kB / 0.5242 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.409, allocations: 1.156 kB / 0.5242 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.409, allocations: 0.6562 kB / 0.5242 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.409, allocations: 1.594 kB / 0.5242 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005409/0.4095, allocations: 403.9 kB / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4095, allocations: 0 / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.514e-05/0.4096, allocations: 12.89 kB / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4096, allocations: 0 / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4097, allocations: 2.609 kB / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4097, allocations: 4.922 kB / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4097, allocations: 3.984 kB / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004564/0.4101, allocations: 249.8 kB / 0.5249 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.56e-05/0.4102, allocations: 89.02 kB / 0.5249 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.4102, allocations: 2 kB / 0.5249 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.4104, allocations: 20.28 kB / 0.525 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.4104, allocations: 11.08 kB / 0.525 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.4104, allocations: 3.672 kB / 0.525 GB, free: 15.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.885e-05/0.4105, allocations: 113.8 kB / 0.5251 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4105, allocations: 1.25 kB / 0.5251 GB, free: 14.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000253/0.4108, allocations: 17.45 kB / 0.5251 GB, free: 14.95 MB / 398.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.176e-05/0.4109, allocations: 98.56 kB / 0.5252 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003027/0.4112, allocations: 88.41 kB / 0.5253 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4112, allocations: 1.594 kB / 0.5253 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.4114, allocations: 48.47 kB / 0.5253 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.4117, allocations: 22.06 kB / 0.5254 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005058/0.4122, allocations: 224.4 kB / 0.5256 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.4125, allocations: 0.7009 MB / 0.5263 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.88e-05/0.4126, allocations: 8.359 kB / 0.5263 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.4126, allocations: 12.94 kB / 0.5263 GB, free: 13.94 MB / 398.1 MB Notification: Performance of SimCode: time 1.784e-06/0.4126, allocations: 1.375 kB / 0.5263 GB, free: 13.94 MB / 398.1 MB Notification: Performance of Templates: time 0.004304/0.4169, allocations: 1.267 MB / 0.5275 GB, free: 13.54 MB / 398.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