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.001032/0.001032, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009327/0.0009329, allocations: 97.78 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.048e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 51.48 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3267/0.4283, allocations: 78.67 MB / 473.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.4287, allocations: 73.81 kB / 473.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01126/0.4399, allocations: 2.551 MB / 476.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.44, allocations: 0 / 476.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.44, allocations: 4 kB / 476.5 MB, free: 11.79 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004931/0.4405, allocations: 414.2 kB / 476.9 MB, free: 11.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.4406, allocations: 8.031 kB / 476.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.4408, allocations: 26.77 kB / 476.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.4412, allocations: 242.7 kB / 477.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.4412, allocations: 4.859 kB / 477.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.4413, allocations: 4 kB / 477.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001714/0.4415, allocations: 47.97 kB / 477.2 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.442, allocations: 239.4 kB / 477.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.442, allocations: 0 / 477.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.4421, allocations: 0 / 477.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4421, allocations: 8 kB / 477.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.4427, allocations: 406.5 kB / 477.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.4431, allocations: 242.1 kB / 478.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.4432, allocations: 96.14 kB / 478.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.4433, allocations: 7.938 kB / 478.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.4433, allocations: 39.22 kB / 478.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 2.765e-06/0.4434, allocations: 0 / 478.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004245/0.4438, allocations: 130.1 kB / 478.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.4439, allocations: 198.3 kB / 478.5 MB, free: 9.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.4441, allocations: 156.1 kB / 478.7 MB, free: 9.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.4441, allocations: 25.92 kB / 478.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.5e-05/0.4442, allocations: 97.89 kB / 478.8 MB, free: 9.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.4442, allocations: 22.61 kB / 478.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-06/0.4442, allocations: 0 / 478.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.4443, allocations: 334.8 kB / 479.2 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.242e-05/0.4444, allocations: 11.88 kB / 479.2 MB, free: 9.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.4445, allocations: 135.1 kB / 479.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.567e-05/0.4446, allocations: 34.47 kB / 479.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4446, allocations: 4 kB / 479.3 MB, free: 8.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003376/0.445, allocations: 144.9 kB / 479.5 MB, free: 8.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.445, allocations: 5.719 kB / 479.5 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.445, allocations: 6.719 kB / 479.5 MB, free: 8.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.4451, allocations: 8 kB / 479.5 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.4453, allocations: 37.8 kB / 479.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.4453, allocations: 4 kB / 479.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.4455, allocations: 17.61 kB / 479.6 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.4456, allocations: 13.45 kB / 479.6 MB, free: 8.727 MB / 346.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 () * 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 8.284e-05/0.4457, allocations: 116.3 kB / 479.7 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002955/0.446, allocations: 112.7 kB / 479.8 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.495e-05/0.4461, allocations: 20.33 kB / 479.8 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4461, allocations: 7.938 kB / 479.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.4461, allocations: 0 / 479.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4462, allocations: 1.453 kB / 479.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.4465, allocations: 195.6 kB / 480 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4465, allocations: 4 kB / 480 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/0.4468, allocations: 43.38 kB / 480.1 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.4468, allocations: 4 kB / 480.1 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.4469, allocations: 0 / 480.1 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4469, allocations: 4 kB / 480.1 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4469, allocations: 1.406 kB / 480.1 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.4472, allocations: 369.6 kB / 480.4 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.4473, allocations: 114.2 kB / 480.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.4474, allocations: 1.453 kB / 480.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.4477, allocations: 18.3 kB / 480.6 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.4478, allocations: 1.266 kB / 480.6 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.4478, allocations: 7.375 kB / 480.6 MB, free: 7.758 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001151/0.4479, allocations: 124.5 kB / 480.7 MB, free: 7.656 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4479, allocations: 0 / 480.7 MB, free: 7.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006198/0.4486, allocations: 16 kB / 480.7 MB, free: 7.641 MB / 346.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 () * 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.0001339/0.4487, allocations: 115 kB / 480.8 MB, free: 7.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002523/0.449, allocations: 87.56 kB / 480.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.449, allocations: 0 / 480.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.103e-05/0.4491, allocations: 4 kB / 480.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.4498, allocations: 84.81 kB / 481 MB, free: 7.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.4503, allocations: 209 kB / 481.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.4505, allocations: 0.7321 MB / 481.9 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.661e-05/0.4507, allocations: 21.56 kB / 481.9 MB, free: 6.461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.873e-05/0.4507, allocations: 19.44 kB / 482 MB, free: 6.441 MB / 346.7 MB Notification: Performance of SimCode: time 6.52e-07/0.4507, allocations: 0 / 482 MB, free: 6.441 MB / 346.7 MB Notification: Performance of Templates: time 0.00623/0.457, allocations: 1.447 MB / 483.4 MB, free: 5.348 MB / 346.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/jenkins/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