Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.5 MB / 230.3 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008206/0.0008204, allocations: 88.47 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.47e-05, allocations: 4 kB / 337.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.41 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3507/0.4579, allocations: 77.85 MB / 465.3 MB, free: 1.039 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.4582, allocations: 79.95 kB / 465.4 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006642/0.4649, allocations: 2.442 MB / 467.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4649, allocations: 0 / 467.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.465, allocations: 4 kB / 467.8 MB, free: 14.52 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.0004517/0.4654, allocations: 419.9 kB / 468.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.4655, allocations: 8.031 kB / 468.3 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.4655, allocations: 19.77 kB / 468.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.4658, allocations: 235.7 kB / 468.5 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.4658, allocations: 4 kB / 468.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.4659, allocations: 7.984 kB / 468.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001176/0.466, allocations: 48.38 kB / 468.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/0.4664, allocations: 237.1 kB / 468.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.4664, allocations: 4 kB / 468.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.4664, allocations: 0 / 468.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4665, allocations: 4 kB / 468.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004611/0.4669, allocations: 415.8 kB / 469.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.4672, allocations: 242.2 kB / 469.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.4674, allocations: 96.41 kB / 469.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4674, allocations: 7.938 kB / 469.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.4674, allocations: 35.91 kB / 469.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.4674, allocations: 4 kB / 469.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.000274/0.4677, allocations: 129.4 kB / 469.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.4678, allocations: 191.8 kB / 469.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.468, allocations: 154.3 kB / 470.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.468, allocations: 25.7 kB / 470.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.4681, allocations: 100.5 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.4681, allocations: 16.22 kB / 470.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.4681, allocations: 0 / 470.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.4682, allocations: 330.8 kB / 470.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.489e-05/0.4683, allocations: 20 kB / 470.5 MB, free: 11.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.4684, allocations: 131.2 kB / 470.7 MB, free: 11.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.415e-05/0.4685, allocations: 36.02 kB / 470.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4685, allocations: 3.938 kB / 470.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00021/0.4687, allocations: 141.2 kB / 470.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.4687, allocations: 8 kB / 470.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.4687, allocations: 8 kB / 470.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.4687, allocations: 4 kB / 470.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.4689, allocations: 44.44 kB / 470.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.4689, allocations: 12 kB / 470.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.844e-05/0.469, allocations: 15.84 kB / 470.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.469, allocations: 8 kB / 470.9 MB, free: 11.03 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.419e-05/0.4691, allocations: 112.9 kB / 471 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.4693, allocations: 115.1 kB / 471.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.087e-05/0.4694, allocations: 17.83 kB / 471.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4694, allocations: 4 kB / 471.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4694, allocations: 0 / 471.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4694, allocations: 11.97 kB / 471.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002549/0.4697, allocations: 186.1 kB / 471.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4697, allocations: 4 kB / 471.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.4698, allocations: 51.8 kB / 471.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4699, allocations: 0 / 471.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.4699, allocations: 4 kB / 471.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.4699, allocations: 0 / 471.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.4699, allocations: 4 kB / 471.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003724/0.4703, allocations: 371.9 kB / 471.8 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4704, allocations: 108.9 kB / 471.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.4704, allocations: 8.078 kB / 471.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.4706, allocations: 8 kB / 471.9 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.4706, allocations: 11.92 kB / 471.9 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.4707, allocations: 8 kB / 471.9 MB, free: 9.906 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.409e-05/0.4708, allocations: 120.1 kB / 472.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4708, allocations: 0 / 472.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.4711, allocations: 23.94 kB / 472.1 MB, free: 9.766 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.0001429/0.4712, allocations: 107.2 kB / 472.2 MB, free: 9.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.4714, allocations: 85.19 kB / 472.3 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4714, allocations: 0 / 472.3 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.791e-05/0.4715, allocations: 5.125 kB / 472.3 MB, free: 9.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.4719, allocations: 84.08 kB / 472.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.4724, allocations: 210.5 kB / 472.6 MB, free: 9.238 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.4727, allocations: 0.7319 MB / 473.3 MB, free: 8.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.074e-05/0.4727, allocations: 17.86 kB / 473.3 MB, free: 8.465 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.4728, allocations: 19.44 kB / 473.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4728, allocations: 0 / 473.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of Templates: time 0.003786/0.4766, allocations: 1.454 MB / 474.8 MB, free: 7.008 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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