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.001172/0.001172, allocations: 108.8 kB / 17.77 MB, free: 5.266 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.001143/0.001143, allocations: 184.1 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.228/1.228, allocations: 222.9 MB / 242.4 MB, free: 15.13 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.1927/0.1927, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 55.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.285, allocations: 60.82 MB / 0.5189 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002694/0.2878, allocations: 1.633 MB / 0.5205 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.2888, allocations: 0.5533 MB / 0.521 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.289, allocations: 1.531 kB / 0.521 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2891, allocations: 18.19 kB / 0.521 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-05/0.2892, allocations: 10.8 kB / 0.521 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.2896, allocations: 96.42 kB / 0.5211 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.2898, allocations: 115.2 kB / 0.5212 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.29, allocations: 28.19 kB / 0.5213 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2901, allocations: 48 kB / 0.5213 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.438e-05/0.2902, allocations: 47.44 kB / 0.5214 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.2903, allocations: 8.062 kB / 0.5214 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.071e-05/0.2903, allocations: 8.188 kB / 0.5214 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.348e-05/0.2903, allocations: 18.48 kB / 0.5214 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.473e-05/0.2904, allocations: 41.55 kB / 0.5214 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.2906, allocations: 86.67 kB / 0.5215 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2906, allocations: 0 / 0.5215 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2906, allocations: 1.031 kB / 0.5215 GB, free: 2.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.2907, allocations: 4 kB / 0.5215 GB, free: 2.078 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.0006393/0.2913, allocations: 412.5 kB / 0.5219 GB, free: 1.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.2913, allocations: 9.562 kB / 0.5219 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.2914, allocations: 16.36 kB / 0.5219 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.2917, allocations: 202.1 kB / 0.5221 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.2917, allocations: 17.34 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.2918, allocations: 8.719 kB / 0.5222 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2921, allocations: 101.6 kB / 0.5223 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2921, allocations: 1.156 kB / 0.5223 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2921, allocations: 0 / 0.5223 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.2921, allocations: 2.984 kB / 0.5223 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.2923, allocations: 58.06 kB / 0.5223 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006433/0.2929, allocations: 382.5 kB / 0.5227 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.2933, allocations: 108.9 kB / 0.5228 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.2934, allocations: 33.88 kB / 0.5228 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.2934, allocations: 5.062 kB / 0.5228 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.2936, allocations: 105.1 kB / 0.5229 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.2936, allocations: 0 / 0.5229 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004361/0.2941, allocations: 142.1 kB / 0.5231 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.2941, allocations: 57.44 kB / 0.5231 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.2942, allocations: 151 kB / 0.5233 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.2943, allocations: 31.39 kB / 0.5233 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.2943, allocations: 98.78 kB / 0.5234 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.2943, allocations: 20.69 kB / 0.5234 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.2944, allocations: 31.36 kB / 0.5234 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.2945, allocations: 321.1 kB / 0.5237 GB, free: 212 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2946, allocations: 31.23 kB / 0.5238 GB, free: 208 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.2947, allocations: 57.62 kB / 0.5238 GB, free: 176 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.2949, allocations: 74.78 kB / 0.5239 GB, free: 144 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2949, allocations: 0 / 0.5239 GB, free: 144 kB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002876/0.2952, allocations: 123.2 kB / 0.524 GB, free: 84 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2952, allocations: 9.016 kB / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2953, allocations: 1.469 kB / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2953, allocations: 0 / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.2954, allocations: 15.73 kB / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.2954, allocations: 5.969 kB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.2955, allocations: 25.25 kB / 0.5241 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2955, allocations: 6.219 kB / 0.5241 GB, free: 60 kB / 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: 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.813e-05/0.2956, allocations: 115.6 kB / 0.5242 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.2956, allocations: 18 kB / 0.5242 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.2957, allocations: 16.3 kB / 0.5242 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2957, allocations: 1.094 kB / 0.5242 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2957, allocations: 0 / 0.5242 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.2957, allocations: 1.75 kB / 0.5242 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/0.2963, allocations: 395.7 kB / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2963, allocations: 0 / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.2964, allocations: 12.2 kB / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2964, allocations: 1 kB / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2964, allocations: 6.141 kB / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.2964, allocations: 80 / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2964, allocations: 10.28 kB / 0.5246 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004333/0.2969, allocations: 249.2 kB / 0.5249 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.2969, allocations: 90.34 kB / 0.5249 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.297, allocations: 8.641 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.2971, allocations: 17 kB / 0.525 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.2972, allocations: 14.95 kB / 0.525 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.2972, allocations: 2.594 kB / 0.525 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.959e-05/0.2973, allocations: 111.7 kB / 0.5251 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2973, allocations: 0 / 0.5251 GB, free: 15.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.2975, allocations: 18.02 kB / 0.5251 GB, free: 15.2 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 8.862e-05/0.2976, allocations: 98.11 kB / 0.5252 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002935/0.2979, allocations: 89.95 kB / 0.5253 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2979, allocations: 0 / 0.5253 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.2981, allocations: 41.78 kB / 0.5253 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.2984, allocations: 19.88 kB / 0.5253 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005115/0.2989, allocations: 232.3 kB / 0.5256 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.2992, allocations: 0.7016 MB / 0.5263 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.825e-05/0.2992, allocations: 11.48 kB / 0.5263 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.2993, allocations: 17.72 kB / 0.5263 GB, free: 14.18 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.2993, allocations: 0 / 0.5263 GB, free: 14.18 MB / 398.1 MB Notification: Performance of Templates: time 0.003455/0.3027, allocations: 1.256 MB / 0.5275 GB, free: 13.77 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