Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 113.8 kB / 17.78 MB, free: 5.309 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.0011/0.0011, allocations: 183.1 kB / 18.71 MB, free: 4.387 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.377/1.377, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.2203/0.2203, allocations: 44.19 MB / 336.7 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.89 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4694/0.4706, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002029/0.4727, allocations: 0.8174 MB / 0.5197 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002125/0.4729, allocations: 49.52 kB / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.071e-05/0.473, allocations: 1.156 kB / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.4731, allocations: 9.375 kB / 0.5197 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.681e-05/0.4732, allocations: 1.25 kB / 0.5197 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001237/0.4733, allocations: 24.12 kB / 0.5198 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.4734, allocations: 36.95 kB / 0.5198 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.4736, allocations: 22.42 kB / 0.5198 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.991e-05/0.4736, allocations: 14.12 kB / 0.5198 GB, free: 3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.179e-05/0.4736, allocations: 17.36 kB / 0.5198 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.4737, allocations: 3.469 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.4737, allocations: 2.375 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.119e-05/0.4737, allocations: 6.656 kB / 0.5199 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.4737, allocations: 21.61 kB / 0.5199 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.4739, allocations: 35.45 kB / 0.5199 GB, free: 2.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.4739, allocations: 0 / 0.5199 GB, free: 2.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4739, allocations: 0 / 0.5199 GB, free: 2.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.4739, allocations: 1.156 kB / 0.5199 GB, free: 2.953 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003776/0.4743, allocations: 353.5 kB / 0.5203 GB, free: 2.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.4743, allocations: 9.688 kB / 0.5203 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.4744, allocations: 11.88 kB / 0.5203 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.4745, allocations: 177.8 kB / 0.5204 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.834e-06/0.4745, allocations: 2.531 kB / 0.5204 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.4746, allocations: 6.938 kB / 0.5205 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.4747, allocations: 49.78 kB / 0.5205 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4747, allocations: 5.469 kB / 0.5205 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.4747, allocations: 3.938 kB / 0.5205 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4747, allocations: 2.078 kB / 0.5205 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.541e-05/0.4748, allocations: 13.91 kB / 0.5205 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004557/0.4752, allocations: 295.8 kB / 0.5208 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.023e-05/0.4753, allocations: 21.5 kB / 0.5208 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.987e-05/0.4753, allocations: 11.89 kB / 0.5208 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.4753, allocations: 5.219 kB / 0.5208 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.961e-05/0.4754, allocations: 56.94 kB / 0.5209 GB, free: 1.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.4754, allocations: 1.156 kB / 0.5209 GB, free: 1.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001559/0.4756, allocations: 50.14 kB / 0.5209 GB, free: 1.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.4756, allocations: 53.12 kB / 0.521 GB, free: 1.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.5e-05/0.4757, allocations: 117 kB / 0.5211 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.4757, allocations: 26.45 kB / 0.5211 GB, free: 1.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.4758, allocations: 99.11 kB / 0.5212 GB, free: 1.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.4758, allocations: 5.859 kB / 0.5212 GB, free: 1.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.4758, allocations: 19.64 kB / 0.5213 GB, free: 1.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.4759, allocations: 321.5 kB / 0.5216 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.845e-05/0.4759, allocations: 3.469 kB / 0.5216 GB, free: 1.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.45e-05/0.4759, allocations: 24.95 kB / 0.5216 GB, free: 1.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.433e-05/0.476, allocations: 26.48 kB / 0.5216 GB, free: 1.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.476, allocations: 1.5 kB / 0.5216 GB, free: 1.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.419e-05/0.4761, allocations: 55.59 kB / 0.5217 GB, free: 1.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.4761, allocations: 5.812 kB / 0.5217 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.4761, allocations: 4 kB / 0.5217 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.4761, allocations: 2.125 kB / 0.5217 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.24e-05/0.4762, allocations: 2.406 kB / 0.5217 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4762, allocations: 5.844 kB / 0.5217 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.943e-05/0.4762, allocations: 6.406 kB / 0.5217 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.4762, allocations: 10.2 kB / 0.5217 GB, free: 1.137 MB / 382.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.247e-05/0.4763, allocations: 113.4 kB / 0.5218 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.4763, allocations: 6.031 kB / 0.5218 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.179e-05/0.4763, allocations: 5.859 kB / 0.5218 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4763, allocations: 1.938 kB / 0.5218 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.4763, allocations: 0 / 0.5218 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.4763, allocations: 1.125 kB / 0.5218 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.4766, allocations: 298.8 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4766, allocations: 1.156 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.871e-05/0.4766, allocations: 5.953 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4766, allocations: 1.406 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.4766, allocations: 6.125 kB / 0.5221 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4766, allocations: 3.938 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4767, allocations: 384 / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.4768, allocations: 157.6 kB / 0.5223 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.034e-05/0.4768, allocations: 78.88 kB / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.4768, allocations: 1.75 kB / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.851e-05/0.4769, allocations: 13.5 kB / 0.5224 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.4769, allocations: 3.281 kB / 0.5224 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.4769, allocations: 1.188 kB / 0.5224 GB, free: 436 kB / 382.1 MB Notification: Performance of sorting global known variables: time 3.536e-05/0.477, allocations: 91.42 kB / 0.5225 GB, free: 356 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.477, allocations: 0 / 0.5225 GB, free: 356 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.4772, allocations: 6.328 kB / 0.5225 GB, free: 356 kB / 382.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 9.544e-05/0.4773, allocations: 96.66 kB / 0.5226 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.4774, allocations: 28.86 kB / 0.5226 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4774, allocations: 0 / 0.5226 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.154e-05/0.4774, allocations: 7.156 kB / 0.5226 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.4777, allocations: 10.84 kB / 0.5226 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.478, allocations: 139.7 kB / 0.5227 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.4783, allocations: 0.689 MB / 0.5234 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.24e-05/0.4783, allocations: 4.078 kB / 0.5234 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.011e-05/0.4784, allocations: 9.625 kB / 0.5234 GB, free: 15.4 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4784, allocations: 4.062 kB / 0.5234 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Templates: time 0.002925/0.4813, allocations: 0.5245 MB / 0.5239 GB, free: 15.32 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches