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.001911/0.001911, allocations: 196.5 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.687/1.687, allocations: 226.5 MB / 245.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008277/0.0008279, allocations: 97.03 kB / 297.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002627, allocations: 8 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2896, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4393, allocations: 78.06 MB / 487.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003957/0.4398, allocations: 80.95 kB / 487.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006988/0.4468, allocations: 1.721 MB / 489.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.4469, allocations: 0 / 489.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.4469, allocations: 0 / 489.2 MB, free: 11.68 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.0006239/0.4475, allocations: 383.2 kB / 489.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.4476, allocations: 8.031 kB / 489.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.4478, allocations: 20.83 kB / 489.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.4481, allocations: 203.4 kB / 489.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.4482, allocations: 8.359 kB / 489.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.4482, allocations: 12.31 kB / 489.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.4487, allocations: 130.9 kB / 490 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4487, allocations: 0 / 490 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.4487, allocations: 0 / 490 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.4487, allocations: 0 / 490 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.4489, allocations: 35.92 kB / 490 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/0.4496, allocations: 370.8 kB / 490.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.4498, allocations: 98.36 kB / 490.5 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.45, allocations: 47.5 kB / 490.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.45, allocations: 3.984 kB / 490.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.4501, allocations: 38.56 kB / 490.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.943e-06/0.4501, allocations: 0 / 490.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004777/0.4506, allocations: 109.7 kB / 490.7 MB, free: 10 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.4507, allocations: 140.4 kB / 490.8 MB, free: 9.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.4509, allocations: 133.8 kB / 490.9 MB, free: 9.695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.4509, allocations: 33.7 kB / 491 MB, free: 9.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.104e-05/0.451, allocations: 88.34 kB / 491.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.4511, allocations: 11.91 kB / 491.1 MB, free: 9.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.4511, allocations: 4 kB / 491.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4512, allocations: 318.8 kB / 491.4 MB, free: 9.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.086e-05/0.4513, allocations: 12 kB / 491.4 MB, free: 9.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.468e-05/0.4514, allocations: 44.28 kB / 491.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/0.4516, allocations: 69.44 kB / 491.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4516, allocations: 0 / 491.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002589/0.4519, allocations: 93.39 kB / 491.6 MB, free: 8.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.4519, allocations: 4 kB / 491.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.452, allocations: 7.938 kB / 491.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.452, allocations: 0 / 491.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.4521, allocations: 15.98 kB / 491.6 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.4522, allocations: 0 / 491.6 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.209e-05/0.4523, allocations: 16.08 kB / 491.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.4523, allocations: 11.94 kB / 491.7 MB, free: 8.926 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 0.0001443/0.4524, allocations: 125.8 kB / 491.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.4526, allocations: 49.61 kB / 491.8 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.324e-05/0.4527, allocations: 19.81 kB / 491.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4527, allocations: 0 / 491.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4527, allocations: 0 / 491.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.4527, allocations: 4 kB / 491.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004/0.4532, allocations: 193.5 kB / 492 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4532, allocations: 0 / 492 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.4533, allocations: 15.98 kB / 492.1 MB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4533, allocations: 0 / 492.1 MB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.4533, allocations: 4 kB / 492.1 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4533, allocations: 0 / 492.1 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4533, allocations: 0 / 492.1 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.4537, allocations: 276.3 kB / 492.3 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.4539, allocations: 93 kB / 492.4 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.4539, allocations: 4 kB / 492.4 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.4541, allocations: 4 kB / 492.4 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.4541, allocations: 3.984 kB / 492.4 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.4542, allocations: 12.12 kB / 492.4 MB, free: 8.023 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001131/0.4543, allocations: 109.9 kB / 492.6 MB, free: 7.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4543, allocations: 0 / 492.6 MB, free: 7.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005077/0.4548, allocations: 12 kB / 492.6 MB, free: 7.906 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.0001816/0.455, allocations: 95.25 kB / 492.7 MB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.4553, allocations: 52.16 kB / 492.7 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.4553, allocations: 4 kB / 492.7 MB, free: 7.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.771e-05/0.4554, allocations: 11.94 kB / 492.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007614/0.4561, allocations: 42.36 kB / 492.8 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007218/0.4569, allocations: 228.1 kB / 493 MB, free: 7.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.4573, allocations: 0.6926 MB / 493.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.954e-05/0.4574, allocations: 11.98 kB / 493.7 MB, free: 6.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.4575, allocations: 15.44 kB / 493.7 MB, free: 6.688 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.4575, allocations: 0 / 493.7 MB, free: 6.688 MB / 362.7 MB Notification: Performance of Templates: time 0.00504/0.4626, allocations: 0.6257 MB / 494.3 MB, free: 6.07 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/jenkins1/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