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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008141/0.0008142, allocations: 187.4 kB / 18.09 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 223.3 MB / 242.1 MB, free: 11.61 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007569/0.0007569, allocations: 96.06 kB / 293.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2637/0.2637, allocations: 44.16 MB / 388.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003317, allocations: 12 kB / 461.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2584, allocations: 61.88 MB / 0.5107 GB, free: 38.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09109/0.3495, allocations: 87.46 MB / 0.5961 GB, free: 7.629 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001673/0.3497, allocations: 67.94 kB / 0.5962 GB, free: 7.566 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007956/0.3577, allocations: 2.95 MB / 0.5991 GB, free: 4.613 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3577, allocations: 3.938 kB / 0.5991 GB, free: 4.609 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3577, allocations: 0 / 0.5991 GB, free: 4.609 MB / 410.7 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.0005344/0.3582, allocations: 431.1 kB / 0.5995 GB, free: 4.137 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3583, allocations: 16.03 kB / 0.5995 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.3583, allocations: 12.83 kB / 0.5995 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.3586, allocations: 220 kB / 0.5997 GB, free: 3.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.3586, allocations: 8.375 kB / 0.5997 GB, free: 3.848 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.3586, allocations: 12.38 kB / 0.5997 GB, free: 3.836 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.3589, allocations: 111.9 kB / 0.5998 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.3589, allocations: 192 / 0.5998 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.3589, allocations: 7.922 kB / 0.5999 GB, free: 3.715 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3589, allocations: 0 / 0.5999 GB, free: 3.715 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.3591, allocations: 63.89 kB / 0.5999 GB, free: 3.652 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005089/0.3596, allocations: 372.6 kB / 0.6003 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.3599, allocations: 122.4 kB / 0.6004 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.36, allocations: 36.92 kB / 0.6004 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.36, allocations: 0 / 0.6004 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.3603, allocations: 107.4 kB / 0.6005 GB, free: 2.953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.534e-06/0.3603, allocations: 0 / 0.6005 GB, free: 2.953 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003951/0.3607, allocations: 165.3 kB / 0.6007 GB, free: 2.785 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.3607, allocations: 55.41 kB / 0.6007 GB, free: 2.719 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.3609, allocations: 156 kB / 0.6009 GB, free: 2.562 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.3609, allocations: 29.7 kB / 0.6009 GB, free: 2.527 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.389e-05/0.3609, allocations: 100.1 kB / 0.601 GB, free: 2.426 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.361, allocations: 19.72 kB / 0.601 GB, free: 2.406 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.361, allocations: 0 / 0.601 GB, free: 2.406 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.438e-05/0.3611, allocations: 322.8 kB / 0.6013 GB, free: 2.082 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.3612, allocations: 35.98 kB / 0.6014 GB, free: 2.047 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.3613, allocations: 57.69 kB / 0.6014 GB, free: 1.984 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.3615, allocations: 89.73 kB / 0.6015 GB, free: 1.891 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3615, allocations: 0 / 0.6015 GB, free: 1.891 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000256/0.3618, allocations: 129.5 kB / 0.6016 GB, free: 1.758 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.3618, allocations: 5.406 kB / 0.6016 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.3618, allocations: 0 / 0.6016 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3618, allocations: 7.938 kB / 0.6016 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.655e-05/0.3619, allocations: 15.98 kB / 0.6017 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.3619, allocations: 3.938 kB / 0.6017 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.598e-05/0.362, allocations: 28.06 kB / 0.6017 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.362, allocations: 4 kB / 0.6017 GB, free: 1.695 MB / 410.7 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,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.954e-05/0.3621, allocations: 117.8 kB / 0.6018 GB, free: 1.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.3621, allocations: 11.91 kB / 0.6018 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.3622, allocations: 12.66 kB / 0.6018 GB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.3622, allocations: 0 / 0.6018 GB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3622, allocations: 4 kB / 0.6018 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3622, allocations: 4 kB / 0.6018 GB, free: 1.543 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3626, allocations: 406.6 kB / 0.6022 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3626, allocations: 0 / 0.6022 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.095e-05/0.3627, allocations: 20 kB / 0.6022 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.3627, allocations: 3.984 kB / 0.6023 GB, free: 1.066 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.3627, allocations: 4 kB / 0.6023 GB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.3627, allocations: 0 / 0.6023 GB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3628, allocations: 0 / 0.6023 GB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.3632, allocations: 263.4 kB / 0.6025 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.3632, allocations: 85.05 kB / 0.6026 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.3632, allocations: 11.94 kB / 0.6026 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.3634, allocations: 27.97 kB / 0.6026 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.3634, allocations: 15.97 kB / 0.6026 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.3634, allocations: 4 kB / 0.6026 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.254e-05/0.3635, allocations: 113 kB / 0.6028 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3635, allocations: 0 / 0.6028 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002125/0.3637, allocations: 16 kB / 0.6028 GB, free: 0.5039 MB / 410.7 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 (change.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.226e-05/0.3638, allocations: 107.8 kB / 0.6029 GB, free: 396 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002521/0.3641, allocations: 91.89 kB / 0.603 GB, free: 304 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3641, allocations: 0 / 0.603 GB, free: 304 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.3642, allocations: 47.97 kB / 0.603 GB, free: 256 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.3645, allocations: 20.67 kB / 0.603 GB, free: 236 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/0.3649, allocations: 234.3 kB / 0.6032 GB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.3651, allocations: 0.7043 MB / 0.6039 GB, free: 15.24 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.332e-05/0.3652, allocations: 8.547 kB / 0.6039 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.3652, allocations: 23.38 kB / 0.604 GB, free: 15.21 MB / 426.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3652, allocations: 0 / 0.604 GB, free: 15.21 MB / 426.7 MB Notification: Performance of Templates: time 0.00268/0.3679, allocations: 1.023 MB / 0.605 GB, free: 14.2 MB / 426.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches