Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009579/0.000958, allocations: 200.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 227.2 MB / 245 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008501/0.00085, allocations: 99.09 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002043, allocations: 11.98 kB / 357.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1794, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08133/0.2608, allocations: 78.13 MB / 487.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.261, allocations: 79.95 kB / 487.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004201/0.2652, allocations: 1.717 MB / 489.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2652, allocations: 0 / 489.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2653, allocations: 0 / 489.3 MB, free: 10.71 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000329/0.2656, allocations: 383 kB / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.2656, allocations: 12.03 kB / 489.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.2657, allocations: 15.91 kB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.2659, allocations: 198.6 kB / 489.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.2659, allocations: 8 kB / 489.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.266, allocations: 11.89 kB / 490 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/0.2662, allocations: 138.6 kB / 490.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2662, allocations: 4 kB / 490.1 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.2663, allocations: 4 kB / 490.1 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-06/0.2663, allocations: 7.984 kB / 490.1 MB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.37e-05/0.2664, allocations: 27.92 kB / 490.1 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000366/0.2667, allocations: 374.7 kB / 490.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.2669, allocations: 94.36 kB / 490.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.2669, allocations: 12.05 kB / 490.6 MB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.2669, allocations: 30.56 kB / 490.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2669, allocations: 0 / 490.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002808/0.2672, allocations: 109.9 kB / 490.7 MB, free: 9.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.2673, allocations: 136.5 kB / 490.9 MB, free: 8.922 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.2674, allocations: 129.5 kB / 491 MB, free: 8.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.2674, allocations: 25.7 kB / 491 MB, free: 8.758 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.2674, allocations: 88.33 kB / 491.1 MB, free: 8.668 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.2675, allocations: 7.906 kB / 491.1 MB, free: 8.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.2675, allocations: 4.094 kB / 491.1 MB, free: 8.656 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2676, allocations: 322.8 kB / 491.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.2677, allocations: 11.98 kB / 491.4 MB, free: 8.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.378e-05/0.2677, allocations: 44.23 kB / 491.5 MB, free: 8.262 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.328e-05/0.2678, allocations: 19.98 kB / 491.5 MB, free: 8.242 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2678, allocations: 4 kB / 491.5 MB, free: 8.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001541/0.2679, allocations: 93.44 kB / 491.6 MB, free: 8.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.268, allocations: 8.156 kB / 491.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.268, allocations: 4 kB / 491.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.408e-06/0.268, allocations: 0 / 491.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.817e-05/0.2681, allocations: 15.98 kB / 491.6 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2681, allocations: 0 / 491.6 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.819e-05/0.2681, allocations: 11.84 kB / 491.6 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.2682, allocations: 4 kB / 491.6 MB, free: 8.098 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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 8.106e-05/0.2682, allocations: 125.8 kB / 491.8 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.266e-05/0.2683, allocations: 61.56 kB / 491.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/0.2684, allocations: 19.81 kB / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.2684, allocations: 0 / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2684, allocations: 0 / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2684, allocations: 7.938 kB / 491.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.2686, allocations: 173.6 kB / 492 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2686, allocations: 0 / 492 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.2687, allocations: 15.94 kB / 492 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.2687, allocations: 7.938 kB / 492.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.2687, allocations: 4 kB / 492.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2687, allocations: 4.062 kB / 492.1 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2687, allocations: 0 / 492.1 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.269, allocations: 310.1 kB / 492.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.269, allocations: 97 kB / 492.5 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.2691, allocations: 7.938 kB / 492.5 MB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.995e-05/0.2692, allocations: 4 kB / 492.5 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.2692, allocations: 3.984 kB / 492.5 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/0.2692, allocations: 4 kB / 492.5 MB, free: 7.145 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.888e-05/0.2693, allocations: 114.6 kB / 492.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2693, allocations: 4 kB / 492.6 MB, free: 7.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000252/0.2696, allocations: 8 kB / 492.6 MB, free: 7.023 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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 9.57e-05/0.2697, allocations: 95.25 kB / 492.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.2698, allocations: 47.92 kB / 492.7 MB, free: 6.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2698, allocations: 4.312 kB / 492.7 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.408e-05/0.2699, allocations: 15.92 kB / 492.8 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.2702, allocations: 42.14 kB / 492.8 MB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/0.2705, allocations: 231.7 kB / 493 MB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.2708, allocations: 0.6965 MB / 493.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.662e-05/0.2708, allocations: 4 kB / 493.7 MB, free: 5.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.2709, allocations: 11.44 kB / 493.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2709, allocations: 4 kB / 493.7 MB, free: 5.809 MB / 362.7 MB Notification: Performance of Templates: time 0.002435/0.2733, allocations: 0.6134 MB / 494.4 MB, free: 5.203 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time