Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009286/0.0009286, allocations: 180.5 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008451/0.000845, allocations: 94.84 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07817/0.07817, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004349, allocations: 9.781 kB / 392 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1148, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.2373, allocations: 79.63 MB / 0.5098 GB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.2376, allocations: 79.95 kB / 0.5098 GB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006482/0.2441, allocations: 2.398 MB / 0.5122 GB, free: 8.715 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2442, allocations: 0 / 0.5122 GB, free: 8.715 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.2442, allocations: 4 kB / 0.5122 GB, free: 8.711 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.0005451/0.2447, allocations: 434.8 kB / 0.5126 GB, free: 8.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2448, allocations: 12.03 kB / 0.5126 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.2449, allocations: 15.81 kB / 0.5126 GB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.2452, allocations: 235.7 kB / 0.5129 GB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.2452, allocations: 12.14 kB / 0.5129 GB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.2453, allocations: 12 kB / 0.5129 GB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.2459, allocations: 316.6 kB / 0.5132 GB, free: 7.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.2459, allocations: 8 kB / 0.5132 GB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.2459, allocations: 0 / 0.5132 GB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.2459, allocations: 4 kB / 0.5132 GB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.2461, allocations: 83.88 kB / 0.5133 GB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000535/0.2467, allocations: 435.5 kB / 0.5137 GB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004632/0.2472, allocations: 311.8 kB / 0.514 GB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.2472, allocations: 12.05 kB / 0.514 GB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.2472, allocations: 38.5 kB / 0.514 GB, free: 6.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 3.176e-06/0.2472, allocations: 4 kB / 0.514 GB, free: 6.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005492/0.2478, allocations: 241.8 kB / 0.5143 GB, free: 6.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.2479, allocations: 199.8 kB / 0.5145 GB, free: 6.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.2481, allocations: 162.1 kB / 0.5146 GB, free: 5.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.2481, allocations: 29.7 kB / 0.5146 GB, free: 5.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.2482, allocations: 108.4 kB / 0.5147 GB, free: 5.766 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.2482, allocations: 15.89 kB / 0.5148 GB, free: 5.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.2482, allocations: 0 / 0.5148 GB, free: 5.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2484, allocations: 330.9 kB / 0.5151 GB, free: 5.418 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.77e-05/0.2484, allocations: 23.98 kB / 0.5151 GB, free: 5.395 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.2486, allocations: 135.4 kB / 0.5152 GB, free: 5.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.933e-05/0.2487, allocations: 43.97 kB / 0.5153 GB, free: 5.164 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2487, allocations: 4 kB / 0.5153 GB, free: 5.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002796/0.249, allocations: 185.1 kB / 0.5154 GB, free: 4.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.249, allocations: 8.469 kB / 0.5155 GB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.249, allocations: 7.953 kB / 0.5155 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.249, allocations: 12 kB / 0.5155 GB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.2492, allocations: 39.91 kB / 0.5155 GB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.2492, allocations: 4 kB / 0.5155 GB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.962e-05/0.2493, allocations: 15.91 kB / 0.5155 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.2493, allocations: 12 kB / 0.5155 GB, free: 4.875 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 (hold.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.0001364/0.2495, allocations: 141.5 kB / 0.5157 GB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.2498, allocations: 153.8 kB / 0.5158 GB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.468e-05/0.2499, allocations: 25.39 kB / 0.5158 GB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.2499, allocations: 7.953 kB / 0.5159 GB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.2499, allocations: 4 kB / 0.5159 GB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.2499, allocations: 0 / 0.5159 GB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.2502, allocations: 221.4 kB / 0.5161 GB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2502, allocations: 0 / 0.5161 GB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.2503, allocations: 47.94 kB / 0.5161 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2504, allocations: 0 / 0.5161 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2504, allocations: 8 kB / 0.5161 GB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2504, allocations: 4 kB / 0.5161 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2504, allocations: 3.953 kB / 0.5161 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.2508, allocations: 423.4 kB / 0.5165 GB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.204e-05/0.251, allocations: 108.9 kB / 0.5166 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.251, allocations: 4 kB / 0.5166 GB, free: 3.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2511, allocations: 12 kB / 0.5167 GB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.2512, allocations: 7.984 kB / 0.5167 GB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.2512, allocations: 4 kB / 0.5167 GB, free: 3.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.642e-05/0.2513, allocations: 141.1 kB / 0.5168 GB, free: 3.457 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2513, allocations: 3.938 kB / 0.5168 GB, free: 3.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003065/0.2516, allocations: 27.91 kB / 0.5168 GB, free: 3.426 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 (hold.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.0001112/0.2517, allocations: 103.1 kB / 0.5169 GB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000292/0.252, allocations: 128.1 kB / 0.5171 GB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.252, allocations: 0 / 0.5171 GB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.665e-05/0.2521, allocations: 12 kB / 0.5171 GB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.2526, allocations: 113.2 kB / 0.5172 GB, free: 3.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006371/0.2532, allocations: 377.3 kB / 0.5175 GB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.2536, allocations: 0.728 MB / 0.5182 GB, free: 1.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.155e-05/0.2537, allocations: 17.55 kB / 0.5183 GB, free: 1.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.2537, allocations: 19.42 kB / 0.5183 GB, free: 1.871 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2537, allocations: 3.938 kB / 0.5183 GB, free: 1.867 MB / 362.7 MB Notification: Performance of Templates: time 0.00422/0.2579, allocations: 1.527 MB / 0.5198 GB, free: 360 kB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.computationalDelay,hold.hold1.y_start,hold.limited,hold.limiter.uMax,hold.limiter.uMin,hold.quantized,hold.resolution,hold.shiftCounter,hold.y,hold.yMax,hold.yMin,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time