Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002398/0.002398, allocations: 201.2 kB / 18.11 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.528/1.528, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008407/0.0008407, allocations: 100.4 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003141/0.0003142, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 51.3 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1188/0.427, allocations: 79.33 MB / 488.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.4273, allocations: 83.94 kB / 488.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00741/0.4347, allocations: 2.504 MB / 491.3 MB, free: 9.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4348, allocations: 3.938 kB / 491.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.4348, allocations: 8 kB / 491.3 MB, free: 9.578 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.0006244/0.4355, allocations: 427 kB / 491.7 MB, free: 9.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4355, allocations: 8.031 kB / 491.7 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.4357, allocations: 28.73 kB / 491.8 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.4361, allocations: 249.7 kB / 492 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4361, allocations: 8.938 kB / 492 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.4361, allocations: 8 kB / 492 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000619/0.4367, allocations: 298.8 kB / 492.3 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.4368, allocations: 7.938 kB / 492.3 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.4368, allocations: 4 kB / 492.3 MB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.4368, allocations: 8 kB / 492.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.4371, allocations: 83.88 kB / 492.4 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.4377, allocations: 435.4 kB / 492.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.4382, allocations: 310.1 kB / 493.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.4384, allocations: 117.6 kB / 493.3 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.4385, allocations: 0 / 493.3 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4385, allocations: 46.55 kB / 493.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.603e-06/0.4385, allocations: 0 / 493.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005869/0.4391, allocations: 237.4 kB / 493.5 MB, free: 7.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.4392, allocations: 199.7 kB / 493.7 MB, free: 6.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.4394, allocations: 183.9 kB / 493.9 MB, free: 6.648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.4395, allocations: 29.7 kB / 493.9 MB, free: 6.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.4395, allocations: 104.1 kB / 494 MB, free: 6.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.4396, allocations: 11.89 kB / 494.1 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.4396, allocations: 4 kB / 494.1 MB, free: 6.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4397, allocations: 322.8 kB / 494.4 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.37e-05/0.4398, allocations: 23.98 kB / 494.4 MB, free: 6.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.4399, allocations: 130.6 kB / 494.5 MB, free: 5.965 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.4402, allocations: 169.5 kB / 494.7 MB, free: 5.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.4402, allocations: 4 kB / 494.7 MB, free: 5.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000287/0.4405, allocations: 165.5 kB / 494.9 MB, free: 5.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.4405, allocations: 8.375 kB / 494.9 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4405, allocations: 0 / 494.9 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.4405, allocations: 8 kB / 494.9 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.4407, allocations: 39.86 kB / 494.9 MB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.4407, allocations: 19.86 kB / 494.9 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.4408, allocations: 11.91 kB / 494.9 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.4408, allocations: 12 kB / 495 MB, free: 5.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (17): * Single equations (assignments): 17 * 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.0001352/0.441, allocations: 129.9 kB / 495.1 MB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.4413, allocations: 157.3 kB / 495.2 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.4414, allocations: 17.41 kB / 495.3 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.4414, allocations: 7.938 kB / 495.3 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4414, allocations: 4 kB / 495.3 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4414, allocations: 8.016 kB / 495.3 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.4417, allocations: 217.5 kB / 495.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4417, allocations: 0 / 495.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.4419, allocations: 47.91 kB / 495.5 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.4419, allocations: 0 / 495.5 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.4419, allocations: 4 kB / 495.5 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.273e-06/0.4419, allocations: 7.938 kB / 495.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4419, allocations: 0 / 495.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004538/0.4424, allocations: 373 kB / 495.9 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.4425, allocations: 108.9 kB / 496 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.4425, allocations: 4 kB / 496 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.4427, allocations: 15.94 kB / 496 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.4427, allocations: 11.92 kB / 496 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.4428, allocations: 4 kB / 496 MB, free: 4.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.4429, allocations: 133.2 kB / 496.2 MB, free: 4.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4429, allocations: 4 kB / 496.2 MB, free: 4.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003313/0.4432, allocations: 24 kB / 496.2 MB, free: 4.113 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001834/0.4434, allocations: 103.2 kB / 496.3 MB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.4438, allocations: 126.8 kB / 496.4 MB, free: 3.883 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4438, allocations: 0 / 496.4 MB, free: 3.883 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.948e-05/0.4438, allocations: 11.94 kB / 496.4 MB, free: 3.871 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.4445, allocations: 115 kB / 496.6 MB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.4457, allocations: 480 kB / 497 MB, free: 3.258 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.446, allocations: 0.7241 MB / 497.7 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.165e-05/0.4461, allocations: 17.91 kB / 497.8 MB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.4461, allocations: 15.44 kB / 497.8 MB, free: 2.477 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4461, allocations: 0 / 497.8 MB, free: 2.477 MB / 362.7 MB Notification: Performance of Templates: time 0.004762/0.4509, allocations: 1.506 MB / 499.3 MB, free: 0.9883 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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