Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,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.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,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.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.28/1.28, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008753/0.0008752, allocations: 92.44 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002832, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2491, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0955/0.3447, allocations: 78.58 MB / 480.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.3449, allocations: 75.95 kB / 480.2 MB, free: 1.789 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006298/0.3512, allocations: 2.413 MB / 482.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3513, allocations: 0 / 482.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3513, allocations: 8 kB / 482.6 MB, free: 15.36 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.0005512/0.3518, allocations: 434.8 kB / 483 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3519, allocations: 8.031 kB / 483 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.855e-05/0.352, allocations: 19.77 kB / 483 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.3523, allocations: 236.5 kB / 483.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.3523, allocations: 8.188 kB / 483.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.3524, allocations: 16 kB / 483.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006619/0.353, allocations: 297.2 kB / 483.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3531, allocations: 0 / 483.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.3531, allocations: 7.953 kB / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3531, allocations: 4 kB / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3533, allocations: 87.89 kB / 483.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000582/0.3539, allocations: 435.4 kB / 484.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.3544, allocations: 310.4 kB / 484.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3545, allocations: 8.047 kB / 484.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.3545, allocations: 46.45 kB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.3545, allocations: 0 / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005547/0.3551, allocations: 229.3 kB / 484.7 MB, free: 13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.3552, allocations: 200.2 kB / 484.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.3554, allocations: 158.7 kB / 485 MB, free: 12.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3554, allocations: 25.7 kB / 485.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.3555, allocations: 108 kB / 485.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.3555, allocations: 7.984 kB / 485.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/0.3555, allocations: 11.94 kB / 485.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3556, allocations: 318.8 kB / 485.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.877e-05/0.3557, allocations: 33.23 kB / 485.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.3558, allocations: 130.5 kB / 485.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.551e-05/0.3559, allocations: 40.02 kB / 485.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3559, allocations: 4 kB / 485.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002702/0.3562, allocations: 173.1 kB / 485.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3562, allocations: 11.94 kB / 485.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3563, allocations: 7.953 kB / 485.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.3563, allocations: 4 kB / 485.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.3564, allocations: 35.92 kB / 485.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3564, allocations: 4.5 kB / 485.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.3565, allocations: 19.92 kB / 485.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.3566, allocations: 12 kB / 486 MB, free: 11.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.000113/0.3567, allocations: 129.8 kB / 486.1 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000289/0.357, allocations: 149.4 kB / 486.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.3571, allocations: 21.44 kB / 486.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3571, allocations: 7.953 kB / 486.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3571, allocations: 0 / 486.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3571, allocations: 7.984 kB / 486.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.3574, allocations: 213.4 kB / 486.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3574, allocations: 7.938 kB / 486.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.3575, allocations: 39.97 kB / 486.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.3575, allocations: 8 kB / 486.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.3576, allocations: 0 / 486.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.3576, allocations: 8 kB / 486.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3576, allocations: 3.953 kB / 486.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004652/0.3581, allocations: 422.2 kB / 487 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.343e-05/0.3582, allocations: 105.1 kB / 487.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.3582, allocations: 7.984 kB / 487.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.3583, allocations: 16 kB / 487.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.3584, allocations: 7.969 kB / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.3584, allocations: 8 kB / 487.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.3585, allocations: 133.2 kB / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3585, allocations: 96 / 487.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002926/0.3588, allocations: 27.88 kB / 487.3 MB, free: 10.17 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001211/0.3589, allocations: 114.6 kB / 487.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.3592, allocations: 112.6 kB / 487.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.3592, allocations: 4.125 kB / 487.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.45e-05/0.3593, allocations: 15.98 kB / 487.5 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.3598, allocations: 100.1 kB / 487.6 MB, free: 9.824 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.3608, allocations: 473.2 kB / 488.1 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.3612, allocations: 0.7319 MB / 488.8 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.278e-05/0.3612, allocations: 13.55 kB / 488.8 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.3613, allocations: 19.44 kB / 488.8 MB, free: 8.531 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3613, allocations: 0 / 488.8 MB, free: 8.531 MB / 362.7 MB Notification: Performance of Templates: time 0.004025/0.3653, allocations: 1.482 MB / 490.3 MB, free: 7.074 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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