Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.305/1.305, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0008798/0.0008797, allocations: 100.6 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002706, allocations: 8 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2458, allocations: 50.42 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09401/0.3398, allocations: 78.58 MB / 480.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.34, allocations: 79.95 kB / 480.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006406/0.3465, allocations: 2.457 MB / 482.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3465, allocations: 4 kB / 482.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.3465, allocations: 4 kB / 482.6 MB, free: 15.32 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005695/0.3471, allocations: 438.8 kB / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3472, allocations: 11.97 kB / 483.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.007e-05/0.3472, allocations: 19.77 kB / 483.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.3475, allocations: 240.5 kB / 483.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.3475, allocations: 8.188 kB / 483.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.3476, allocations: 16 kB / 483.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.3482, allocations: 306.4 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3482, allocations: 0 / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.3482, allocations: 4 kB / 483.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.3482, allocations: 4 kB / 483.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.3484, allocations: 83.89 kB / 483.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.3489, allocations: 447.3 kB / 484.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.3494, allocations: 310.2 kB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.3494, allocations: 8.062 kB / 484.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.3495, allocations: 38.78 kB / 484.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.3495, allocations: 3.938 kB / 484.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005199/0.35, allocations: 237.2 kB / 484.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.3501, allocations: 196.3 kB / 485 MB, free: 12.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.3503, allocations: 159.6 kB / 485.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3503, allocations: 29.7 kB / 485.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.3504, allocations: 104.4 kB / 485.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.3504, allocations: 15.88 kB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.3504, allocations: 8 kB / 485.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3505, allocations: 322.8 kB / 485.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.594e-05/0.3506, allocations: 31.94 kB / 485.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.3507, allocations: 143.4 kB / 485.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.3508, allocations: 47.95 kB / 485.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3509, allocations: 3.938 kB / 485.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000281/0.3511, allocations: 181.1 kB / 486 MB, free: 11.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3512, allocations: 8 kB / 486 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3512, allocations: 4 kB / 486 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3512, allocations: 4 kB / 486 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3513, allocations: 32.52 kB / 486 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.3514, allocations: 19.92 kB / 486 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.3515, allocations: 15.94 kB / 486.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3515, allocations: 8 kB / 486.1 MB, free: 11.49 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0001188/0.3516, allocations: 141.7 kB / 486.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.3519, allocations: 153.4 kB / 486.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.352, allocations: 21.41 kB / 486.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.352, allocations: 11.92 kB / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.352, allocations: 0 / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.352, allocations: 0 / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.3523, allocations: 217.5 kB / 486.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3523, allocations: 0 / 486.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.3524, allocations: 47.91 kB / 486.6 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3524, allocations: 7.938 kB / 486.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3525, allocations: 4.031 kB / 486.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3525, allocations: 4 kB / 486.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3525, allocations: 0 / 486.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004125/0.3529, allocations: 422.5 kB / 487.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.004e-05/0.353, allocations: 120.8 kB / 487.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.353, allocations: 7.953 kB / 487.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.3532, allocations: 15.98 kB / 487.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.3532, allocations: 0 / 487.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.3532, allocations: 8 kB / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.369e-05/0.3533, allocations: 133.2 kB / 487.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3533, allocations: 0 / 487.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002946/0.3536, allocations: 24 kB / 487.4 MB, free: 10.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.0001167/0.3538, allocations: 103.2 kB / 487.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002634/0.354, allocations: 120.8 kB / 487.6 MB, free: 9.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.354, allocations: 4.062 kB / 487.6 MB, free: 9.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.615e-05/0.3541, allocations: 23.92 kB / 487.6 MB, free: 9.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.3546, allocations: 105.4 kB / 487.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005917/0.3552, allocations: 369.3 kB / 488.1 MB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.3555, allocations: 0.728 MB / 488.8 MB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.74e-05/0.3556, allocations: 21.55 kB / 488.8 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.3556, allocations: 15.44 kB / 488.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3556, allocations: 0 / 488.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of Templates: time 0.004056/0.3597, allocations: 1.54 MB / 490.4 MB, free: 6.988 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time