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.0008902/0.0008903, allocations: 176.7 kB / 17.4 MB, free: 4.277 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.341/1.341, allocations: 223.3 MB / 241.4 MB, free: 11.67 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.0008493/0.0008494, allocations: 103.3 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003174, allocations: 15.92 kB / 352.3 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.3687, allocations: 77.36 MB / 480.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.3692, allocations: 79.89 kB / 480.2 MB, free: 2.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004775/0.3739, allocations: 1.621 MB / 481.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.374, allocations: 0 / 481.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.374, allocations: 0 / 481.8 MB, free: 1.27 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.0004452/0.3744, allocations: 379.1 kB / 482.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3745, allocations: 12.03 kB / 482.2 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3745, allocations: 8.844 kB / 482.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.3748, allocations: 195.7 kB / 482.4 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.3748, allocations: 12.31 kB / 482.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.3748, allocations: 384 / 482.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.3752, allocations: 142.8 kB / 482.5 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3752, allocations: 0 / 482.5 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.3752, allocations: 0 / 482.5 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3752, allocations: 0 / 482.5 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.3754, allocations: 39.91 kB / 482.6 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005265/0.3759, allocations: 366.8 kB / 482.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.376, allocations: 102.4 kB / 483 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.127e-05/0.3761, allocations: 43.48 kB / 483.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3762, allocations: 3.906 kB / 483.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.3762, allocations: 46.5 kB / 483.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.3762, allocations: 0 / 483.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003207/0.3765, allocations: 101.5 kB / 483.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.3767, allocations: 141 kB / 483.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.3768, allocations: 137.8 kB / 483.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.3768, allocations: 29.69 kB / 483.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.3769, allocations: 88.14 kB / 483.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.3769, allocations: 11.84 kB / 483.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.3769, allocations: 4 kB / 483.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3771, allocations: 322.8 kB / 483.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.3771, allocations: 12 kB / 484 MB, free: 14.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.207e-05/0.3772, allocations: 44.28 kB / 484 MB, free: 14.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.3773, allocations: 65.44 kB / 484.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3773, allocations: 4 kB / 484.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001547/0.3775, allocations: 85.45 kB / 484.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3775, allocations: 8.156 kB / 484.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.3775, allocations: 4 kB / 484.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3776, allocations: 0 / 484.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.99e-05/0.3777, allocations: 15.98 kB / 484.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3777, allocations: 0 / 484.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.06e-05/0.3777, allocations: 8 kB / 484.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.3778, allocations: 11.92 kB / 484.2 MB, free: 14.55 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.545e-05/0.3779, allocations: 117.8 kB / 484.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.378, allocations: 61.59 kB / 484.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/0.378, allocations: 15.83 kB / 484.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.378, allocations: 3.938 kB / 484.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.378, allocations: 3.938 kB / 484.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.378, allocations: 4 kB / 484.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.3783, allocations: 189.6 kB / 484.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3783, allocations: 0 / 484.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.945e-05/0.3784, allocations: 19.92 kB / 484.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3784, allocations: 0 / 484.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3784, allocations: 4.062 kB / 484.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3784, allocations: 4 kB / 484.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3784, allocations: 0 / 484.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.3787, allocations: 276.3 kB / 484.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.81e-05/0.3788, allocations: 96.98 kB / 485 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.3788, allocations: 4 kB / 485 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.784e-05/0.3789, allocations: 7.984 kB / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.3789, allocations: 0 / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.379, allocations: 7.938 kB / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.977e-05/0.3791, allocations: 113.3 kB / 485.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3791, allocations: 0 / 485.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000246/0.3793, allocations: 8 kB / 485.1 MB, free: 13.52 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.0001146/0.3794, allocations: 103.2 kB / 485.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001662/0.3796, allocations: 47.91 kB / 485.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3796, allocations: 0 / 485.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.439e-05/0.3797, allocations: 20.25 kB / 485.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.3801, allocations: 28.14 kB / 485.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.3806, allocations: 228 kB / 485.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.3809, allocations: 0.7001 MB / 486.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.193e-05/0.381, allocations: 7.984 kB / 486.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.723e-05/0.381, allocations: 11.38 kB / 486.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of SimCode: time 4.3e-07/0.381, allocations: 0 / 486.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of Templates: time 0.002633/0.3837, allocations: 0.6329 MB / 486.9 MB, free: 11.69 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/jenkins1/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