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.00252/0.00252, allocations: 196.9 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000832/0.0008321, allocations: 102.3 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3018, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1194/0.4212, allocations: 79.34 MB / 488.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/0.4216, allocations: 83.94 kB / 488.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007527/0.4292, allocations: 2.559 MB / 491.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4292, allocations: 0 / 491.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.4292, allocations: 0 / 491.4 MB, free: 9.547 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.0005929/0.4298, allocations: 443 kB / 491.8 MB, free: 9.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4299, allocations: 8.031 kB / 491.8 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.4301, allocations: 32.73 kB / 491.8 MB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.4304, allocations: 237.7 kB / 492.1 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.4304, allocations: 8.875 kB / 492.1 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.4305, allocations: 16 kB / 492.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000737/0.4312, allocations: 322.8 kB / 492.4 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.4312, allocations: 0 / 492.4 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.4313, allocations: 8 kB / 492.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.4313, allocations: 0 / 492.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.4315, allocations: 87.88 kB / 492.5 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.4321, allocations: 443.3 kB / 492.9 MB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.4327, allocations: 307.5 kB / 493.2 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.4329, allocations: 120.2 kB / 493.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.4329, allocations: 8 kB / 493.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.4329, allocations: 38.55 kB / 493.4 MB, free: 7.246 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.4329, allocations: 0 / 493.4 MB, free: 7.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005854/0.4335, allocations: 245.1 kB / 493.6 MB, free: 7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.4337, allocations: 196.3 kB / 493.8 MB, free: 6.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.4339, allocations: 179.7 kB / 494 MB, free: 6.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.4339, allocations: 25.7 kB / 494 MB, free: 6.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/0.434, allocations: 100.5 kB / 494.1 MB, free: 6.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.434, allocations: 11.91 kB / 494.1 MB, free: 6.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-06/0.434, allocations: 8 kB / 494.1 MB, free: 6.422 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4342, allocations: 322.8 kB / 494.5 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.4343, allocations: 31.97 kB / 494.5 MB, free: 6.066 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.4345, allocations: 143.4 kB / 494.6 MB, free: 5.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.4348, allocations: 178.4 kB / 494.8 MB, free: 5.645 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4348, allocations: 0 / 494.8 MB, free: 5.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000302/0.4351, allocations: 177.1 kB / 495 MB, free: 5.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4352, allocations: 8 kB / 495 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.4352, allocations: 4 kB / 495 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.4352, allocations: 4 kB / 495 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.4354, allocations: 40.45 kB / 495 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.4354, allocations: 11.94 kB / 495 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.4355, allocations: 23.83 kB / 495.1 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.4355, allocations: 15.94 kB / 495.1 MB, free: 5.359 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 0.0001476/0.4357, allocations: 133.7 kB / 495.2 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000297/0.436, allocations: 157.3 kB / 495.4 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.436, allocations: 21.41 kB / 495.4 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.4361, allocations: 4 kB / 495.4 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4361, allocations: 3.984 kB / 495.4 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.4361, allocations: 0 / 495.4 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.4364, allocations: 225.4 kB / 495.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4364, allocations: 0 / 495.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.4366, allocations: 39.97 kB / 495.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/0.4366, allocations: 4.234 kB / 495.7 MB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.4366, allocations: 4.031 kB / 495.7 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.4366, allocations: 7.938 kB / 495.7 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4366, allocations: 0 / 495.7 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.4372, allocations: 377.1 kB / 496 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.4373, allocations: 108.8 kB / 496.1 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.4373, allocations: 8 kB / 496.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.4375, allocations: 15.98 kB / 496.2 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.4375, allocations: 8 kB / 496.2 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.4375, allocations: 7.938 kB / 496.2 MB, free: 4.141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.4377, allocations: 133.2 kB / 496.3 MB, free: 4.012 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4377, allocations: 0 / 496.3 MB, free: 4.012 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.438, allocations: 31.84 kB / 496.3 MB, free: 3.98 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.0002018/0.4382, allocations: 103.2 kB / 496.4 MB, free: 3.871 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003566/0.4386, allocations: 128.9 kB / 496.6 MB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4386, allocations: 0 / 496.6 MB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.018e-05/0.4387, allocations: 17.05 kB / 496.6 MB, free: 3.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.4394, allocations: 130.3 kB / 496.7 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006874/0.4401, allocations: 360.3 kB / 497.1 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.4405, allocations: 0.728 MB / 497.8 MB, free: 2.469 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.671e-05/0.4406, allocations: 13.55 kB / 497.8 MB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.289e-05/0.4407, allocations: 15.44 kB / 497.8 MB, free: 2.441 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4407, allocations: 0 / 497.8 MB, free: 2.441 MB / 362.7 MB Notification: Performance of Templates: time 0.005225/0.4459, allocations: 1.555 MB / 499.4 MB, free: 0.9023 MB / 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/jenkins1/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