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.001204/0.001204, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001275/0.001274, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.369/1.369, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2271/0.2271, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5787/0.5799, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003917/0.5839, allocations: 0.8205 MB / 0.5197 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003179/0.5842, allocations: 50.31 kB / 0.5197 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.5844, allocations: 1.156 kB / 0.5197 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.5846, allocations: 5.438 kB / 0.5197 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.989e-05/0.5847, allocations: 5.094 kB / 0.5197 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.5849, allocations: 20.31 kB / 0.5198 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.585, allocations: 36.97 kB / 0.5198 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.5852, allocations: 26.64 kB / 0.5198 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.777e-05/0.5853, allocations: 10.11 kB / 0.5198 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.078e-05/0.5853, allocations: 21.09 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.5854, allocations: 2.312 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/0.5854, allocations: 7.594 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.933e-05/0.5855, allocations: 6.547 kB / 0.5199 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.408e-05/0.5855, allocations: 21.14 kB / 0.5199 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.5856, allocations: 31.33 kB / 0.5199 GB, free: 2.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.5856, allocations: 0 / 0.5199 GB, free: 2.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5857, allocations: 0 / 0.5199 GB, free: 2.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.5857, allocations: 5.375 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.0004269/0.5861, allocations: 348.5 kB / 0.5203 GB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.5862, allocations: 10.58 kB / 0.5203 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.5862, allocations: 11.84 kB / 0.5203 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.5864, allocations: 177.8 kB / 0.5204 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.5864, allocations: 2.453 kB / 0.5204 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.5865, allocations: 7.625 kB / 0.5205 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.5866, allocations: 53.16 kB / 0.5205 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.5866, allocations: 5.75 kB / 0.5205 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.5866, allocations: 3.938 kB / 0.5205 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.5867, allocations: 1.25 kB / 0.5205 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.132e-05/0.5867, allocations: 13.06 kB / 0.5205 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.5875, allocations: 290 kB / 0.5208 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.034e-05/0.5876, allocations: 21.16 kB / 0.5208 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.833e-05/0.5876, allocations: 16.08 kB / 0.5208 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.5876, allocations: 0 / 0.5208 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/0.5877, allocations: 54.27 kB / 0.5209 GB, free: 1.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.5877, allocations: 0 / 0.5209 GB, free: 1.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001876/0.5879, allocations: 55.09 kB / 0.5209 GB, free: 1.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/0.588, allocations: 51.41 kB / 0.521 GB, free: 1.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.853e-05/0.5881, allocations: 117.4 kB / 0.5211 GB, free: 1.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.985e-06/0.5881, allocations: 31.05 kB / 0.5211 GB, free: 1.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.5881, allocations: 94.94 kB / 0.5212 GB, free: 1.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.5881, allocations: 11 kB / 0.5212 GB, free: 1.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.5882, allocations: 18.62 kB / 0.5213 GB, free: 1.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.5883, allocations: 322.2 kB / 0.5216 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.049e-05/0.5883, allocations: 3.312 kB / 0.5216 GB, free: 1.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.655e-05/0.5883, allocations: 20 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.5884, allocations: 31.12 kB / 0.5216 GB, free: 1.203 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5884, allocations: 1.406 kB / 0.5216 GB, free: 1.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.679e-05/0.5885, allocations: 55.67 kB / 0.5217 GB, free: 1.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.5885, allocations: 5.719 kB / 0.5217 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5885, allocations: 1 kB / 0.5217 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.5885, allocations: 1.312 kB / 0.5217 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.171e-05/0.5886, allocations: 7.469 kB / 0.5217 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.5886, allocations: 1.094 kB / 0.5217 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.43e-05/0.5886, allocations: 6.828 kB / 0.5217 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.5886, allocations: 9.312 kB / 0.5217 GB, free: 1.145 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 7.051e-05/0.5887, allocations: 117.3 kB / 0.5218 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.5887, allocations: 7.125 kB / 0.5218 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.5888, allocations: 5.984 kB / 0.5218 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.5888, allocations: 0 / 0.5218 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.5888, allocations: 1.188 kB / 0.5218 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.5888, allocations: 0.7969 kB / 0.5218 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.5891, allocations: 299.8 kB / 0.5221 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5891, allocations: 4 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.414e-05/0.5891, allocations: 3.062 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5891, allocations: 0 / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.5891, allocations: 5.031 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5891, allocations: 5.938 kB / 0.5221 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5892, allocations: 384 / 0.5221 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.5893, allocations: 152.2 kB / 0.5223 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.5893, allocations: 80.12 kB / 0.5224 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.5894, allocations: 4.578 kB / 0.5224 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.092e-05/0.5895, allocations: 10.36 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.5895, allocations: 3.391 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.5895, allocations: 0.75 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of sorting global known variables: time 4.906e-05/0.5896, allocations: 90.58 kB / 0.5225 GB, free: 364 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5896, allocations: 0 / 0.5225 GB, free: 364 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002429/0.5898, allocations: 6.156 kB / 0.5225 GB, free: 364 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.042e-05/0.5899, allocations: 97.17 kB / 0.5226 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.59, allocations: 28.86 kB / 0.5226 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.59, allocations: 1.031 kB / 0.5226 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.177e-05/0.5901, allocations: 6.891 kB / 0.5226 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.5904, allocations: 10.31 kB / 0.5226 GB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.5907, allocations: 140.6 kB / 0.5227 GB, free: 120 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.591, allocations: 0.6876 MB / 0.5234 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.766e-05/0.591, allocations: 3.875 kB / 0.5234 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.5911, allocations: 14 kB / 0.5234 GB, free: 15.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5911, allocations: 0 / 0.5234 GB, free: 15.41 MB / 398.1 MB Notification: Performance of Templates: time 0.003226/0.5943, allocations: 0.5171 MB / 0.5239 GB, free: 15.33 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