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.001255/0.001255, allocations: 111.8 kB / 18.45 MB, free: 4.578 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.001019/0.001019, allocations: 182.3 kB / 19.38 MB, free: 3.664 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.26/1.26, allocations: 222.9 MB / 243.1 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.1864/0.1864, allocations: 44.19 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2957, allocations: 60.82 MB / 0.5195 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002534/0.2983, allocations: 1.64 MB / 0.5211 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008774/0.2992, allocations: 0.546 MB / 0.5217 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.863e-05/0.2993, allocations: 5.188 kB / 0.5217 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.2994, allocations: 10.88 kB / 0.5217 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.755e-05/0.2995, allocations: 14.88 kB / 0.5217 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2998, allocations: 88.05 kB / 0.5218 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.3, allocations: 118.3 kB / 0.5219 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.3001, allocations: 29.03 kB / 0.5219 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.78e-05/0.3002, allocations: 48.06 kB / 0.522 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.464e-05/0.3003, allocations: 43.36 kB / 0.522 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.3003, allocations: 11.94 kB / 0.522 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.926e-05/0.3003, allocations: 12.03 kB / 0.522 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.3004, allocations: 22.39 kB / 0.5221 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.3004, allocations: 41.22 kB / 0.5221 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001551/0.3006, allocations: 91.03 kB / 0.5222 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.3006, allocations: 0 / 0.5222 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3006, allocations: 0 / 0.5222 GB, free: 1.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.3006, allocations: 1.094 kB / 0.5222 GB, free: 1.809 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.0005578/0.3012, allocations: 414.3 kB / 0.5226 GB, free: 1.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3012, allocations: 8.438 kB / 0.5226 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.3013, allocations: 11.28 kB / 0.5226 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.3015, allocations: 207.7 kB / 0.5228 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.3015, allocations: 4.469 kB / 0.5228 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.3015, allocations: 10.12 kB / 0.5228 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.3018, allocations: 105 kB / 0.5229 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3018, allocations: 0 / 0.5229 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3019, allocations: 6.062 kB / 0.5229 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3019, allocations: 1.75 kB / 0.5229 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.302, allocations: 54.55 kB / 0.523 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.3027, allocations: 390.5 kB / 0.5234 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.303, allocations: 100 kB / 0.5234 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.3031, allocations: 34.42 kB / 0.5235 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.879e-06/0.3031, allocations: 1.312 kB / 0.5235 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.3034, allocations: 100.1 kB / 0.5236 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.3034, allocations: 1.062 kB / 0.5236 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004409/0.3038, allocations: 141.4 kB / 0.5237 GB, free: 0.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.3039, allocations: 61.41 kB / 0.5238 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.304, allocations: 151.5 kB / 0.5239 GB, free: 448 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.304, allocations: 30.8 kB / 0.5239 GB, free: 412 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.304, allocations: 99.36 kB / 0.524 GB, free: 316 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.3041, allocations: 20.7 kB / 0.5241 GB, free: 300 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.3041, allocations: 29.45 kB / 0.5241 GB, free: 276 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.896e-05/0.3042, allocations: 319.6 kB / 0.5244 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.3043, allocations: 38.61 kB / 0.5244 GB, free: 15.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.3045, allocations: 53.55 kB / 0.5245 GB, free: 15.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.3047, allocations: 79.14 kB / 0.5246 GB, free: 15.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3047, allocations: 0 / 0.5246 GB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002808/0.305, allocations: 114.5 kB / 0.5247 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.305, allocations: 9.281 kB / 0.5247 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.305, allocations: 1.5 kB / 0.5247 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.3051, allocations: 4.547 kB / 0.5247 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.3052, allocations: 23.47 kB / 0.5247 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3052, allocations: 1.875 kB / 0.5247 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.753e-05/0.3053, allocations: 16.78 kB / 0.5247 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.3053, allocations: 3.25 kB / 0.5247 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 8.966e-05/0.3054, allocations: 119.5 kB / 0.5248 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.3054, allocations: 16.5 kB / 0.5249 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.3055, allocations: 18.22 kB / 0.5249 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3055, allocations: 0 / 0.5249 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3055, allocations: 1.5 kB / 0.5249 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3055, allocations: 0.6094 kB / 0.5249 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.3061, allocations: 399.4 kB / 0.5253 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3061, allocations: 4 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.764e-05/0.3062, allocations: 12.73 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3062, allocations: 3.984 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3062, allocations: 2.031 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3062, allocations: 0 / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3062, allocations: 1.609 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.3067, allocations: 249.9 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.3067, allocations: 93.83 kB / 0.5256 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.3068, allocations: 0.5625 kB / 0.5256 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.3069, allocations: 17.88 kB / 0.5256 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.531e-05/0.307, allocations: 18.47 kB / 0.5256 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.307, allocations: 3.969 kB / 0.5256 GB, free: 15.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.805e-05/0.3071, allocations: 111.5 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3071, allocations: 3.938 kB / 0.5258 GB, free: 14.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002333/0.3073, allocations: 17.92 kB / 0.5258 GB, free: 14.94 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 0.00011/0.3074, allocations: 93.92 kB / 0.5259 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.3078, allocations: 96.97 kB / 0.526 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3078, allocations: 0 / 0.526 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.3079, allocations: 38.91 kB / 0.526 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.0003152/0.3082, allocations: 21.84 kB / 0.526 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005449/0.3088, allocations: 260 kB / 0.5263 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.3091, allocations: 0.7019 MB / 0.5269 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.3091, allocations: 13.56 kB / 0.527 GB, free: 13.89 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3091, allocations: 0 / 0.527 GB, free: 13.89 MB / 398.1 MB Notification: Performance of Templates: time 0.002998/0.3121, allocations: 1.357 MB / 0.5283 GB, free: 13.44 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches