Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008524/0.0008524, allocations: 178.9 kB / 18.09 MB, free: 3.605 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.15/1.15, allocations: 223.3 MB / 242.1 MB, free: 11.74 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.0007601/0.0007602, allocations: 94.62 kB / 293.3 MB, free: 10.82 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.2861/0.2861, allocations: 44.15 MB / 388.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003329, allocations: 15.98 kB / 461.1 MB, free: 1.367 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2586, allocations: 61.88 MB / 0.5107 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08906/0.3477, allocations: 87.12 MB / 0.5958 GB, free: 7.996 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001723/0.348, allocations: 63.97 kB / 0.5959 GB, free: 7.938 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004245/0.3522, allocations: 1.705 MB / 0.5975 GB, free: 6.234 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3522, allocations: 0 / 0.5975 GB, free: 6.234 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.3523, allocations: 7.938 kB / 0.5975 GB, free: 6.227 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004055/0.3527, allocations: 387.2 kB / 0.5979 GB, free: 5.797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.3527, allocations: 8.031 kB / 0.5979 GB, free: 5.789 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.755e-05/0.3528, allocations: 20.83 kB / 0.5979 GB, free: 5.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.3529, allocations: 188.2 kB / 0.5981 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.353, allocations: 4.375 kB / 0.5981 GB, free: 5.543 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.353, allocations: 8.375 kB / 0.5981 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.3531, allocations: 80.12 kB / 0.5982 GB, free: 5.453 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3531, allocations: 4.188 kB / 0.5982 GB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3532, allocations: 7.938 kB / 0.5982 GB, free: 5.441 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3532, allocations: 0 / 0.5982 GB, free: 5.441 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.3532, allocations: 31.98 kB / 0.5982 GB, free: 5.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.3537, allocations: 356.6 kB / 0.5986 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.751e-05/0.3538, allocations: 42.52 kB / 0.5986 GB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.288e-05/0.3539, allocations: 20.92 kB / 0.5986 GB, free: 4.938 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.3539, allocations: 0 / 0.5986 GB, free: 4.938 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.354, allocations: 75.28 kB / 0.5987 GB, free: 4.852 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3541, allocations: 0 / 0.5987 GB, free: 4.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001897/0.3543, allocations: 85.83 kB / 0.5988 GB, free: 4.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.3543, allocations: 59.28 kB / 0.5989 GB, free: 4.691 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.3544, allocations: 138.9 kB / 0.599 GB, free: 4.547 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3544, allocations: 29.7 kB / 0.599 GB, free: 4.512 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.3545, allocations: 96.05 kB / 0.5991 GB, free: 4.414 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.3545, allocations: 27.86 kB / 0.5991 GB, free: 4.387 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-06/0.3545, allocations: 0 / 0.5991 GB, free: 4.387 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.596e-05/0.3546, allocations: 322.8 kB / 0.5994 GB, free: 4.062 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.889e-05/0.3547, allocations: 15.98 kB / 0.5995 GB, free: 4.047 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.618e-05/0.3547, allocations: 42.5 kB / 0.5995 GB, free: 3.996 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.391e-05/0.3548, allocations: 54.52 kB / 0.5995 GB, free: 3.934 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3548, allocations: 0 / 0.5995 GB, free: 3.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001245/0.3549, allocations: 89.53 kB / 0.5996 GB, free: 3.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.355, allocations: 8 kB / 0.5996 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.355, allocations: 0 / 0.5996 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.355, allocations: 4 kB / 0.5996 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.782e-05/0.3551, allocations: 15.92 kB / 0.5997 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3551, allocations: 0 / 0.5997 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.3551, allocations: 8 kB / 0.5997 GB, free: 3.805 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.3551, allocations: 4 kB / 0.5997 GB, free: 3.801 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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 7.933e-05/0.3552, allocations: 121.8 kB / 0.5998 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.3553, allocations: 15.89 kB / 0.5998 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.3553, allocations: 8.719 kB / 0.5998 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3553, allocations: 7.938 kB / 0.5998 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3553, allocations: 0 / 0.5998 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3553, allocations: 0 / 0.5998 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.3556, allocations: 338.5 kB / 0.6001 GB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3556, allocations: 0 / 0.6001 GB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.778e-05/0.3557, allocations: 15.88 kB / 0.6002 GB, free: 3.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3557, allocations: 4 kB / 0.6002 GB, free: 3.234 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3557, allocations: 7.984 kB / 0.6002 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3557, allocations: 0 / 0.6002 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3557, allocations: 0 / 0.6002 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001783/0.3559, allocations: 179.5 kB / 0.6003 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.356, allocations: 96.95 kB / 0.6004 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.356, allocations: 0 / 0.6004 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.3561, allocations: 8.062 kB / 0.6004 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.3561, allocations: 15.97 kB / 0.6005 GB, free: 2.898 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.3561, allocations: 4 kB / 0.6005 GB, free: 2.895 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.745e-05/0.3562, allocations: 104.7 kB / 0.6006 GB, free: 2.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.56e-06/0.3562, allocations: 0 / 0.6006 GB, free: 2.793 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002162/0.3564, allocations: 15.94 kB / 0.6006 GB, free: 2.777 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 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.043e-05/0.3565, allocations: 99.72 kB / 0.6007 GB, free: 2.672 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.3567, allocations: 43.97 kB / 0.6007 GB, free: 2.629 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3567, allocations: 4.125 kB / 0.6007 GB, free: 2.625 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.3567, allocations: 35.86 kB / 0.6007 GB, free: 2.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.357, allocations: 21.64 kB / 0.6008 GB, free: 2.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.3575, allocations: 233.6 kB / 0.601 GB, free: 2.312 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.3577, allocations: 0.6965 MB / 0.6017 GB, free: 1.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.702e-05/0.3577, allocations: 12.38 kB / 0.6017 GB, free: 1.578 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.3578, allocations: 11.44 kB / 0.6017 GB, free: 1.566 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3578, allocations: 4 kB / 0.6017 GB, free: 1.562 MB / 410.7 MB Notification: Performance of Templates: time 0.002602/0.3604, allocations: 0.8184 MB / 0.6025 GB, free: 0.75 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches