Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001788/0.001788, allocations: 179.2 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.659/1.659, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0009273/0.0009272, allocations: 94.86 kB / 270.3 MB, free: 13.34 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.07348/0.07348, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004174, allocations: 12.09 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.0949, allocations: 50.37 MB / 442.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.2079, allocations: 82.02 MB / 0.5121 GB, free: 8.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.2082, allocations: 83.95 kB / 0.5122 GB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02164/0.2299, allocations: 6.071 MB / 0.5181 GB, free: 2.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.23, allocations: 0 / 0.5181 GB, free: 2.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.511e-05/0.23, allocations: 4 kB / 0.5181 GB, free: 2.652 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001083/0.2311, allocations: 0.5349 MB / 0.5186 GB, free: 2.062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.2312, allocations: 12.03 kB / 0.5186 GB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.2313, allocations: 23.72 kB / 0.5187 GB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.232, allocations: 302.4 kB / 0.519 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.2321, allocations: 7.891 kB / 0.519 GB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.2321, allocations: 12 kB / 0.519 GB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.2326, allocations: 168.4 kB / 0.5191 GB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2326, allocations: 0 / 0.5191 GB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.2327, allocations: 0 / 0.5191 GB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2327, allocations: 4 kB / 0.5191 GB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.2329, allocations: 43.91 kB / 0.5192 GB, free: 1.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008984/0.2338, allocations: 490.5 kB / 0.5197 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.2342, allocations: 146.8 kB / 0.5198 GB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.2342, allocations: 12.19 kB / 0.5198 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.2345, allocations: 93.03 kB / 0.5199 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.605e-06/0.2345, allocations: 0 / 0.5199 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006119/0.2351, allocations: 177.6 kB / 0.5201 GB, free: 416 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.2353, allocations: 191.9 kB / 0.5202 GB, free: 180 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2269/0.4622, allocations: 294.4 kB / 0.5205 GB, free: 84.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.085e-05/0.4623, allocations: 33.22 kB / 0.5206 GB, free: 83.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.364e-05/0.4624, allocations: 127.1 kB / 0.5207 GB, free: 83.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.4625, allocations: 18.36 kB / 0.5207 GB, free: 83.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-06/0.4625, allocations: 4.172 kB / 0.5207 GB, free: 83.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.418e-05/0.4626, allocations: 337.9 kB / 0.521 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.4627, allocations: 24.86 kB / 0.521 GB, free: 83.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.4629, allocations: 110.5 kB / 0.5212 GB, free: 83.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.463, allocations: 32.14 kB / 0.5212 GB, free: 83.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.463, allocations: 0 / 0.5212 GB, free: 83.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000257/0.4632, allocations: 142.9 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4633, allocations: 6.375 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.4633, allocations: 0 / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.4633, allocations: 3.25 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.4634, allocations: 25.12 kB / 0.5214 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.4635, allocations: 3.094 kB / 0.5214 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.4636, allocations: 16.38 kB / 0.5214 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.4636, allocations: 8.031 kB / 0.5214 GB, free: 83.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001308/0.4637, allocations: 162.3 kB / 0.5215 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.2e-05/0.4638, allocations: 75.38 kB / 0.5216 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.4641, allocations: 125 kB / 0.5217 GB, free: 83.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4641, allocations: 2.797 kB / 0.5217 GB, free: 83.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4641, allocations: 1.125 kB / 0.5217 GB, free: 83.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4641, allocations: 2.016 kB / 0.5217 GB, free: 83.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.4643, allocations: 257 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4643, allocations: 3.141 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.843e-05/0.4644, allocations: 24.2 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.4644, allocations: 2.062 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.4645, allocations: 12.34 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.4645, allocations: 2.094 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4645, allocations: 3.938 kB / 0.522 GB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.4648, allocations: 218.4 kB / 0.5222 GB, free: 82.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.4649, allocations: 128.1 kB / 0.5224 GB, free: 82.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.4649, allocations: 4.062 kB / 0.5224 GB, free: 82.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.387e-05/0.465, allocations: 7.797 kB / 0.5224 GB, free: 82.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.4652, allocations: 14.72 kB / 0.5224 GB, free: 82.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.4653, allocations: 3.625 kB / 0.5224 GB, free: 82.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004736/0.4657, allocations: 240.5 kB / 0.5226 GB, free: 82.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4658, allocations: 0 / 0.5226 GB, free: 82.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006068/0.4664, allocations: 52.72 kB / 0.5227 GB, free: 82.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001551/0.468, allocations: 449.5 kB / 0.5231 GB, free: 82.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004925/0.4685, allocations: 100.3 kB / 0.5232 GB, free: 82.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4685, allocations: 2.625 kB / 0.5232 GB, free: 82.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001911/0.4687, allocations: 46.19 kB / 0.5232 GB, free: 82.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.4693, allocations: 68.31 kB / 0.5233 GB, free: 82.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.4704, allocations: 420.8 kB / 0.5237 GB, free: 82.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.4707, allocations: 0.7541 MB / 0.5244 GB, free: 81.51 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.4709, allocations: 33.33 kB / 0.5245 GB, free: 81.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.956e-05/0.471, allocations: 24.34 kB / 0.5245 GB, free: 81.5 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.471, allocations: 0 / 0.5245 GB, free: 81.5 MB / 362.7 MB Notification: Performance of Templates: time 0.01144/0.4825, allocations: 2.834 MB / 0.5273 GB, free: 81.25 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time