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.001247/0.001248, 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.001205/0.001205, 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.206/0.206, allocations: 44.18 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.354, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00279/0.3569, allocations: 1.621 MB / 0.5205 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009558/0.3578, allocations: 0.559 MB / 0.521 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.358, allocations: 5.375 kB / 0.521 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.3581, allocations: 14.17 kB / 0.521 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-05/0.3582, allocations: 10.97 kB / 0.521 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003973/0.3586, allocations: 87.83 kB / 0.5211 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.3588, allocations: 110.4 kB / 0.5212 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.3589, allocations: 39.89 kB / 0.5213 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.427e-05/0.359, allocations: 49.25 kB / 0.5213 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.212e-05/0.3591, allocations: 38.95 kB / 0.5214 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.3592, allocations: 7.75 kB / 0.5214 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.033e-05/0.3592, allocations: 8.25 kB / 0.5214 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.203e-05/0.3592, allocations: 27.44 kB / 0.5214 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/0.3593, allocations: 36.67 kB / 0.5214 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.3595, allocations: 89.88 kB / 0.5215 GB, free: 1.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3595, allocations: 0 / 0.5215 GB, free: 1.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3595, allocations: 4.969 kB / 0.5215 GB, free: 1.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.3595, allocations: 0.6562 kB / 0.5215 GB, free: 1.812 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.0006274/0.3601, allocations: 414 kB / 0.5219 GB, free: 1.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.3602, allocations: 9.453 kB / 0.5219 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.3602, allocations: 14.16 kB / 0.5219 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.3605, allocations: 204.3 kB / 0.5221 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.3605, allocations: 8.75 kB / 0.5221 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.3606, allocations: 9.062 kB / 0.5222 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.3609, allocations: 104.3 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3609, allocations: 6.109 kB / 0.5223 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3609, allocations: 0 / 0.5223 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3609, allocations: 2.688 kB / 0.5223 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001661/0.3611, allocations: 58.55 kB / 0.5223 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006621/0.3618, allocations: 381.5 kB / 0.5227 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.3621, allocations: 105.2 kB / 0.5228 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3622, allocations: 42 kB / 0.5228 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.3623, allocations: 0 / 0.5228 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.3625, allocations: 93.03 kB / 0.5229 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3625, allocations: 3.938 kB / 0.5229 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000461/0.363, allocations: 143.1 kB / 0.523 GB, free: 0.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.363, allocations: 61.28 kB / 0.5231 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3631, allocations: 151.1 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3632, allocations: 27.17 kB / 0.5233 GB, free: 416 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.3632, allocations: 103.6 kB / 0.5234 GB, free: 316 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.3633, allocations: 24.12 kB / 0.5234 GB, free: 296 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.3633, allocations: 22.88 kB / 0.5234 GB, free: 276 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3634, allocations: 325 kB / 0.5237 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.3636, allocations: 35.36 kB / 0.5238 GB, free: 15.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.3637, allocations: 61.86 kB / 0.5238 GB, free: 15.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.364, allocations: 70.2 kB / 0.5239 GB, free: 15.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.364, allocations: 0 / 0.5239 GB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003007/0.3643, allocations: 123.2 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3643, allocations: 9.859 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3643, allocations: 0 / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3644, allocations: 1.156 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.3645, allocations: 19.55 kB / 0.524 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.485e-06/0.3645, allocations: 1.156 kB / 0.524 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.3646, allocations: 26.64 kB / 0.5241 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.3647, allocations: 6.5 kB / 0.5241 GB, free: 15.8 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.444e-05/0.3648, allocations: 115 kB / 0.5242 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.3648, allocations: 13 kB / 0.5242 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.3648, allocations: 12.45 kB / 0.5242 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3648, allocations: 1.75 kB / 0.5242 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3648, allocations: 1.25 kB / 0.5242 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3649, allocations: 0.6562 kB / 0.5242 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.3655, allocations: 403.8 kB / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3655, allocations: 288 / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.616e-05/0.3656, allocations: 11.45 kB / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.3656, allocations: 1.672 kB / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3656, allocations: 5.125 kB / 0.5246 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3656, allocations: 4.844 kB / 0.5246 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3656, allocations: 1.156 kB / 0.5246 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.3661, allocations: 249.8 kB / 0.5249 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/0.3662, allocations: 89.77 kB / 0.5249 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.3662, allocations: 0.5625 kB / 0.5249 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.3664, allocations: 21.05 kB / 0.525 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.3664, allocations: 12.12 kB / 0.525 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.3664, allocations: 2.328 kB / 0.525 GB, free: 15.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.6e-05/0.3665, allocations: 114.3 kB / 0.5251 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3665, allocations: 1.969 kB / 0.5251 GB, free: 14.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002459/0.3668, allocations: 17.06 kB / 0.5251 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.0001066/0.3669, allocations: 97.16 kB / 0.5252 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.3672, allocations: 90.22 kB / 0.5253 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3672, allocations: 0 / 0.5253 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.3674, allocations: 45.53 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.0003289/0.3677, allocations: 15.91 kB / 0.5253 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.3683, allocations: 234.9 kB / 0.5256 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.3686, allocations: 0.7001 MB / 0.5262 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.264e-05/0.3686, allocations: 8.672 kB / 0.5263 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.3687, allocations: 12.78 kB / 0.5263 GB, free: 13.93 MB / 398.1 MB Notification: Performance of SimCode: time 5.3e-07/0.3687, allocations: 3.938 kB / 0.5263 GB, free: 13.93 MB / 398.1 MB Notification: Performance of Templates: time 0.004423/0.3731, allocations: 1.316 MB / 0.5276 GB, free: 13.49 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