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.001187/0.001187, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008502/0.0008503, allocations: 97.14 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.119e-05/2.118e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 51.48 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3388/0.4428, allocations: 78.66 MB / 473.8 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4431, allocations: 80.55 kB / 473.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006109/0.4492, allocations: 2.482 MB / 476.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4493, allocations: 0 / 476.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.4493, allocations: 4 kB / 476.4 MB, free: 11.84 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.000365/0.4497, allocations: 416.1 kB / 476.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.4497, allocations: 8.031 kB / 476.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.4498, allocations: 26.95 kB / 476.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.4501, allocations: 236.7 kB / 477.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.4501, allocations: 4.859 kB / 477.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.4502, allocations: 4 kB / 477.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.75e-05/0.4503, allocations: 51.58 kB / 477.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.4506, allocations: 238.5 kB / 477.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.4506, allocations: 4 kB / 477.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.4506, allocations: 4 kB / 477.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4507, allocations: 0 / 477.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003949/0.4511, allocations: 410 kB / 477.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.4513, allocations: 247.7 kB / 478 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.641e-05/0.4514, allocations: 95.55 kB / 478.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.4515, allocations: 9.625 kB / 478.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.4515, allocations: 38.59 kB / 478.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.4515, allocations: 0 / 478.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002453/0.4517, allocations: 129.4 kB / 478.3 MB, free: 10 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.4518, allocations: 193.1 kB / 478.5 MB, free: 9.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.4519, allocations: 157.4 kB / 478.6 MB, free: 9.641 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.452, allocations: 25.7 kB / 478.6 MB, free: 9.609 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.452, allocations: 96.88 kB / 478.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.452, allocations: 14.34 kB / 478.8 MB, free: 9.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.452, allocations: 4.094 kB / 478.8 MB, free: 9.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.4521, allocations: 326.3 kB / 479.1 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.675e-05/0.4521, allocations: 14.19 kB / 479.1 MB, free: 9.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.94e-05/0.4522, allocations: 116.1 kB / 479.2 MB, free: 9.035 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.842e-05/0.4522, allocations: 34.17 kB / 479.2 MB, free: 9.012 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4522, allocations: 0 / 479.2 MB, free: 9.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001922/0.4524, allocations: 140.4 kB / 479.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.4525, allocations: 6.859 kB / 479.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4525, allocations: 4 kB / 479.4 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.4525, allocations: 8 kB / 479.4 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.4526, allocations: 31.97 kB / 479.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.4526, allocations: 9.344 kB / 479.4 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.129e-05/0.4527, allocations: 17.89 kB / 479.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.4528, allocations: 19.92 kB / 479.5 MB, free: 8.809 MB / 346.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 () * 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 5.633e-05/0.4528, allocations: 108.9 kB / 479.6 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.453, allocations: 117.8 kB / 479.7 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.222e-05/0.453, allocations: 18.17 kB / 479.7 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.453, allocations: 4 kB / 479.7 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.453, allocations: 0 / 479.7 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.453, allocations: 5.922 kB / 479.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.4532, allocations: 181.7 kB / 479.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4533, allocations: 0 / 479.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.4534, allocations: 45.2 kB / 479.9 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4534, allocations: 0 / 479.9 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.4534, allocations: 9.547 kB / 480 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4534, allocations: 6.75 kB / 480 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4534, allocations: 3.938 kB / 480 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002033/0.4536, allocations: 365.6 kB / 480.3 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.467e-05/0.4537, allocations: 113.1 kB / 480.4 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.4538, allocations: 5.688 kB / 480.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.4539, allocations: 14.91 kB / 480.5 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.4539, allocations: 7.938 kB / 480.5 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.454, allocations: 8.75 kB / 480.5 MB, free: 7.848 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.497e-05/0.454, allocations: 130.7 kB / 480.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.454, allocations: 0 / 480.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002979/0.4543, allocations: 16 kB / 480.6 MB, free: 7.727 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 (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.0001023/0.4544, allocations: 96.66 kB / 480.7 MB, free: 7.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001439/0.4546, allocations: 85.53 kB / 480.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4546, allocations: 0 / 480.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.552e-05/0.4546, allocations: 4 kB / 480.8 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.455, allocations: 84.42 kB / 480.9 MB, free: 7.504 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007645/0.4558, allocations: 318.2 kB / 481.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.456, allocations: 0.7346 MB / 481.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.172e-05/0.456, allocations: 13.23 kB / 481.9 MB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.456, allocations: 15.44 kB / 481.9 MB, free: 6.473 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4561, allocations: 0 / 481.9 MB, free: 6.473 MB / 346.7 MB Notification: Performance of Templates: time 0.003325/0.4594, allocations: 1.403 MB / 483.4 MB, free: 5.422 MB / 346.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/jenkins/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