Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00099/0.0009901, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 227.2 MB / 245 MB, free: 7.562 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008421/0.0008421, allocations: 110.6 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002015, allocations: 12 kB / 357.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1781, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08193/0.26, allocations: 79.4 MB / 488.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.2602, allocations: 83.95 kB / 488.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006601/0.2669, allocations: 2.58 MB / 491.5 MB, free: 8.578 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2669, allocations: 0 / 491.5 MB, free: 8.578 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.2669, allocations: 4 kB / 491.5 MB, free: 8.574 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.0004505/0.2674, allocations: 434.8 kB / 491.9 MB, free: 8.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2674, allocations: 12.03 kB / 491.9 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.2675, allocations: 23.81 kB / 491.9 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.2678, allocations: 248.1 kB / 492.2 MB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2678, allocations: 4.188 kB / 492.2 MB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.2679, allocations: 11.95 kB / 492.2 MB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.2684, allocations: 304.1 kB / 492.5 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2684, allocations: 7.922 kB / 492.5 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.2684, allocations: 8 kB / 492.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2684, allocations: 0 / 492.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.2687, allocations: 91.83 kB / 492.6 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.2691, allocations: 439.4 kB / 493 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.2695, allocations: 307.5 kB / 493.3 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2696, allocations: 0 / 493.3 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.2696, allocations: 46.56 kB / 493.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.202e-06/0.2696, allocations: 0 / 493.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005041/0.2701, allocations: 233.7 kB / 493.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.2702, allocations: 199.8 kB / 493.8 MB, free: 5.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2704, allocations: 166.3 kB / 494 MB, free: 5.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.2704, allocations: 25.7 kB / 494 MB, free: 5.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.2704, allocations: 104.6 kB / 494.1 MB, free: 5.637 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.2705, allocations: 15.89 kB / 494.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.2705, allocations: 4 kB / 494.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.903e-05/0.2706, allocations: 322.8 kB / 494.4 MB, free: 5.293 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.603e-05/0.2706, allocations: 31.97 kB / 494.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.2708, allocations: 131.5 kB / 494.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.892e-05/0.2709, allocations: 51.95 kB / 494.6 MB, free: 5.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2709, allocations: 4 kB / 494.6 MB, free: 5.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002743/0.2711, allocations: 177.4 kB / 494.8 MB, free: 4.844 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2712, allocations: 8 kB / 494.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2712, allocations: 4 kB / 494.8 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2712, allocations: 7.953 kB / 494.8 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.2713, allocations: 43.92 kB / 494.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.2714, allocations: 11.92 kB / 494.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.2715, allocations: 11.94 kB / 494.9 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.2715, allocations: 12 kB / 494.9 MB, free: 4.746 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 9.768e-05/0.2716, allocations: 134 kB / 495 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.2718, allocations: 159.6 kB / 495.2 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.2719, allocations: 21.39 kB / 495.2 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2719, allocations: 4 kB / 495.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2719, allocations: 3.953 kB / 495.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2719, allocations: 8.031 kB / 495.2 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.2722, allocations: 229.4 kB / 495.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2722, allocations: 0 / 495.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.2723, allocations: 43.91 kB / 495.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2723, allocations: 0 / 495.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.2724, allocations: 4 kB / 495.5 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2724, allocations: 0 / 495.5 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2724, allocations: 4 kB / 495.5 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003793/0.2727, allocations: 430.9 kB / 495.9 MB, free: 3.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.09e-05/0.2728, allocations: 112.8 kB / 496 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.2729, allocations: 8 kB / 496 MB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.273, allocations: 15.98 kB / 496.1 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.2731, allocations: 8.234 kB / 496.1 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.2731, allocations: 4 kB / 496.1 MB, free: 3.453 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.2732, allocations: 137.1 kB / 496.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2732, allocations: 0 / 496.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003071/0.2735, allocations: 24 kB / 496.2 MB, free: 3.297 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.0001019/0.2736, allocations: 111.2 kB / 496.3 MB, free: 3.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002512/0.2738, allocations: 127.7 kB / 496.5 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2739, allocations: 1.062 kB / 496.5 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-05/0.2739, allocations: 11.98 kB / 496.5 MB, free: 3.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.2743, allocations: 115 kB / 496.6 MB, free: 2.934 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004963/0.2748, allocations: 361.2 kB / 496.9 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.2751, allocations: 0.7319 MB / 497.7 MB, free: 1.785 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.52e-05/0.2752, allocations: 13.55 kB / 497.7 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.463e-05/0.2752, allocations: 19.44 kB / 497.7 MB, free: 1.754 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2752, allocations: 0 / 497.7 MB, free: 1.754 MB / 362.7 MB Notification: Performance of Templates: time 0.003367/0.2786, allocations: 1.539 MB / 499.2 MB, free: 244 kB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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