Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 181.6 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.571/1.571, 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.0009645/0.0009645, allocations: 78.88 kB / 270.3 MB, free: 13.38 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.07658/0.07658, allocations: 12.61 MB / 331.1 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003873, allocations: 16.84 kB / 392 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1123, allocations: 50.37 MB / 442.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1201/0.2324, allocations: 79.62 MB / 0.5098 GB, free: 11.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/0.2328, allocations: 79.95 kB / 0.5098 GB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006639/0.2395, allocations: 2.341 MB / 0.5121 GB, free: 8.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.2395, allocations: 0 / 0.5121 GB, free: 8.809 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.2395, allocations: 8 kB / 0.5121 GB, free: 8.801 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.0006272/0.2402, allocations: 426.8 kB / 0.5125 GB, free: 8.336 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.2402, allocations: 15.97 kB / 0.5125 GB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.2403, allocations: 27.8 kB / 0.5126 GB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.2406, allocations: 231.7 kB / 0.5128 GB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.2406, allocations: 12.14 kB / 0.5128 GB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.2407, allocations: 4 kB / 0.5128 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006061/0.2413, allocations: 298.1 kB / 0.5131 GB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2413, allocations: 8 kB / 0.5131 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.2413, allocations: 3.984 kB / 0.5131 GB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.2413, allocations: 7.938 kB / 0.5131 GB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.2416, allocations: 83.83 kB / 0.5132 GB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.2422, allocations: 435.4 kB / 0.5136 GB, free: 7.098 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/0.2427, allocations: 316 kB / 0.5139 GB, free: 6.727 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.2428, allocations: 3.984 kB / 0.5139 GB, free: 6.723 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.2428, allocations: 38.56 kB / 0.514 GB, free: 6.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.2428, allocations: 4 kB / 0.514 GB, free: 6.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005593/0.2434, allocations: 237.5 kB / 0.5142 GB, free: 6.434 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.2435, allocations: 195.9 kB / 0.5144 GB, free: 6.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.2436, allocations: 162.1 kB / 0.5145 GB, free: 6.035 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.2437, allocations: 29.7 kB / 0.5146 GB, free: 6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.2438, allocations: 100.1 kB / 0.5146 GB, free: 5.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.2438, allocations: 11.91 kB / 0.5147 GB, free: 5.887 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.2438, allocations: 0 / 0.5147 GB, free: 5.887 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2439, allocations: 338.8 kB / 0.515 GB, free: 5.547 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.027e-05/0.244, allocations: 19.98 kB / 0.515 GB, free: 5.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.2441, allocations: 133.5 kB / 0.5151 GB, free: 5.348 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.999e-05/0.2442, allocations: 43.95 kB / 0.5152 GB, free: 5.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2442, allocations: 0 / 0.5152 GB, free: 5.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002571/0.2445, allocations: 169.1 kB / 0.5153 GB, free: 5.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.2445, allocations: 8 kB / 0.5153 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.2446, allocations: 4 kB / 0.5153 GB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.2446, allocations: 4.5 kB / 0.5153 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.2447, allocations: 39.92 kB / 0.5154 GB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.2447, allocations: 4 kB / 0.5154 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.2448, allocations: 23.83 kB / 0.5154 GB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.2449, allocations: 8 kB / 0.5154 GB, free: 5.043 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.0001153/0.245, allocations: 141.5 kB / 0.5156 GB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002881/0.2453, allocations: 149.3 kB / 0.5157 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.147e-05/0.2453, allocations: 25.39 kB / 0.5157 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2453, allocations: 0 / 0.5157 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.2454, allocations: 4 kB / 0.5157 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2454, allocations: 0 / 0.5157 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.2456, allocations: 229.5 kB / 0.5159 GB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2457, allocations: 0 / 0.5159 GB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.2458, allocations: 44 kB / 0.516 GB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2458, allocations: 3.938 kB / 0.516 GB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.2459, allocations: 8.469 kB / 0.516 GB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2459, allocations: 3.938 kB / 0.516 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2459, allocations: 4 kB / 0.516 GB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.2463, allocations: 419.8 kB / 0.5164 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.885e-05/0.2464, allocations: 104.8 kB / 0.5165 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.2465, allocations: 11.98 kB / 0.5165 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.2466, allocations: 15.95 kB / 0.5165 GB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.2467, allocations: 16.16 kB / 0.5165 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.2467, allocations: 4 kB / 0.5166 GB, free: 3.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.2468, allocations: 133.2 kB / 0.5167 GB, free: 3.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2468, allocations: 4 kB / 0.5167 GB, free: 3.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002923/0.2471, allocations: 20 kB / 0.5167 GB, free: 3.598 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.0001115/0.2472, allocations: 99.23 kB / 0.5168 GB, free: 3.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.2475, allocations: 116.5 kB / 0.5169 GB, free: 3.375 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2475, allocations: 4 kB / 0.5169 GB, free: 3.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.648e-05/0.2476, allocations: 19.92 kB / 0.5169 GB, free: 3.352 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.2481, allocations: 104.1 kB / 0.517 GB, free: 3.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.2491, allocations: 477.5 kB / 0.5175 GB, free: 2.742 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.2495, allocations: 0.728 MB / 0.5182 GB, free: 1.988 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.668e-05/0.2495, allocations: 13.55 kB / 0.5182 GB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.2496, allocations: 19.44 kB / 0.5182 GB, free: 1.957 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.2496, allocations: 0 / 0.5182 GB, free: 1.957 MB / 362.7 MB Notification: Performance of Templates: time 0.003999/0.2536, allocations: 1.491 MB / 0.5197 GB, free: 492 kB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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