Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 179.5 kB / 16.39 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.287/1.287, 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.0009042/0.0009043, allocations: 94.75 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002693, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2483, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09216/0.3406, allocations: 77.32 MB / 478.8 MB, free: 3.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.3409, allocations: 79.95 kB / 478.9 MB, free: 3.059 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004516/0.3454, allocations: 1.617 MB / 480.5 MB, free: 1.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3455, allocations: 0 / 480.5 MB, free: 1.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.3455, allocations: 4 kB / 480.5 MB, free: 1.445 MB / 346.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.000444/0.3459, allocations: 372.3 kB / 480.9 MB, free: 1.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.346, allocations: 12.03 kB / 480.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.346, allocations: 11.86 kB / 480.9 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.3463, allocations: 198.8 kB / 481.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.3463, allocations: 4.906 kB / 481.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.3464, allocations: 4 kB / 481.1 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.3467, allocations: 138.7 kB / 481.2 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3467, allocations: 7.922 kB / 481.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.3467, allocations: 0 / 481.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.3467, allocations: 7.953 kB / 481.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.868e-05/0.3468, allocations: 31.98 kB / 481.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004285/0.3473, allocations: 370.8 kB / 481.6 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.3474, allocations: 90.42 kB / 481.7 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3474, allocations: 4.062 kB / 481.7 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.3475, allocations: 42.48 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.3475, allocations: 0 / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003312/0.3478, allocations: 105.8 kB / 481.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.3479, allocations: 144.5 kB / 482 MB, free: 15.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.3481, allocations: 125.5 kB / 482.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3481, allocations: 29.7 kB / 482.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.093e-05/0.3481, allocations: 92.31 kB / 482.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.3482, allocations: 7.844 kB / 482.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-06/0.3482, allocations: 4 kB / 482.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3483, allocations: 318.8 kB / 482.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.749e-05/0.3484, allocations: 16 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.409e-05/0.3484, allocations: 48.28 kB / 482.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.772e-05/0.3485, allocations: 23.92 kB / 482.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3485, allocations: 4 kB / 482.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001491/0.3487, allocations: 77.61 kB / 482.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3487, allocations: 4 kB / 482.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3487, allocations: 4 kB / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3487, allocations: 160 / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.87e-05/0.3488, allocations: 27.83 kB / 482.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3489, allocations: 3.984 kB / 482.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.914e-05/0.3489, allocations: 11.91 kB / 482.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3489, allocations: 4 kB / 482.8 MB, free: 14.85 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 9.063e-05/0.349, allocations: 117.8 kB / 482.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.8e-05/0.3491, allocations: 57.53 kB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.3492, allocations: 19.81 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3492, allocations: 4.062 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3492, allocations: 3.953 kB / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3492, allocations: 7.938 kB / 483 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.3494, allocations: 177.6 kB / 483.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3495, allocations: 0 / 483.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.581e-05/0.3495, allocations: 15.98 kB / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3495, allocations: 0 / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3495, allocations: 4 kB / 483.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3496, allocations: 0 / 483.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3496, allocations: 3.938 kB / 483.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.3498, allocations: 313.5 kB / 483.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.3499, allocations: 96.95 kB / 483.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.3499, allocations: 4 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.35, allocations: 5.219 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.3501, allocations: 0 / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.3501, allocations: 7.984 kB / 483.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.415e-05/0.3502, allocations: 105.9 kB / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3502, allocations: 4 kB / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002451/0.3504, allocations: 8 kB / 483.7 MB, free: 13.79 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 0.0001174/0.3505, allocations: 111.1 kB / 483.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.3507, allocations: 44.11 kB / 483.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3507, allocations: 0 / 483.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.531e-05/0.3508, allocations: 20.3 kB / 483.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.3511, allocations: 34.53 kB / 484 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003785/0.3515, allocations: 224.2 kB / 484.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.3518, allocations: 0.6965 MB / 484.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.694e-05/0.3518, allocations: 7.984 kB / 484.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.3518, allocations: 11.44 kB / 484.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3519, allocations: 3.938 kB / 484.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Templates: time 0.002544/0.3544, allocations: 0.6193 MB / 485.5 MB, free: 11.96 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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