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.001455/0.001459, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.501/2.501, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001144/0.001144, allocations: 95.56 kB / 261.8 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1092/0.1092, allocations: 12.59 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.763e-05, allocations: 4 kB / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 50.36 MB / 429.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5461, allocations: 81.28 MB / 0.4986 GB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.5465, allocations: 83.22 kB / 0.4987 GB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02458/0.5711, allocations: 6.014 MB / 0.5046 GB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.5712, allocations: 0 / 0.5046 GB, free: 10.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.977e-05/0.5712, allocations: 11.72 kB / 0.5046 GB, free: 10.82 MB / 330.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.0007237/0.5719, allocations: 0.4884 MB / 0.5051 GB, free: 10.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.572, allocations: 7.531 kB / 0.5051 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.5721, allocations: 27.19 kB / 0.5051 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.5727, allocations: 285.5 kB / 0.5054 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.5727, allocations: 7.797 kB / 0.5054 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.5727, allocations: 3.719 kB / 0.5054 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001617/0.5729, allocations: 45.7 kB / 0.5054 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.5733, allocations: 159.4 kB / 0.5056 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.5733, allocations: 0 / 0.5056 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.5733, allocations: 0 / 0.5056 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.5733, allocations: 3.844 kB / 0.5056 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007066/0.5741, allocations: 461.4 kB / 0.506 GB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.5743, allocations: 140 kB / 0.5061 GB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.614e-05/0.5744, allocations: 48.53 kB / 0.5062 GB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.5745, allocations: 10.53 kB / 0.5062 GB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.5747, allocations: 98.95 kB / 0.5063 GB, free: 9.336 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.184e-06/0.5747, allocations: 0 / 0.5063 GB, free: 9.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003805/0.5751, allocations: 129.7 kB / 0.5064 GB, free: 9.277 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.5752, allocations: 187.9 kB / 0.5066 GB, free: 9.055 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.5756, allocations: 285.2 kB / 0.5069 GB, free: 8.938 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.5756, allocations: 25.7 kB / 0.5069 GB, free: 8.906 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.971e-05/0.5757, allocations: 136.1 kB / 0.507 GB, free: 8.809 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.5758, allocations: 18.55 kB / 0.507 GB, free: 8.797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.5758, allocations: 0 / 0.507 GB, free: 8.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.109e-05/0.5759, allocations: 337.7 kB / 0.5074 GB, free: 8.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.185e-05/0.5759, allocations: 22.47 kB / 0.5074 GB, free: 8.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.5761, allocations: 105.2 kB / 0.5075 GB, free: 8.387 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.811e-05/0.5762, allocations: 32.53 kB / 0.5075 GB, free: 8.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5762, allocations: 7.984 kB / 0.5075 GB, free: 8.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002635/0.5765, allocations: 124.8 kB / 0.5076 GB, free: 8.312 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.5765, allocations: 3.594 kB / 0.5076 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.5765, allocations: 3.844 kB / 0.5076 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.5765, allocations: 0 / 0.5076 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.5768, allocations: 23.36 kB / 0.5077 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5768, allocations: 0 / 0.5077 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.5769, allocations: 11.28 kB / 0.5077 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.577, allocations: 8 kB / 0.5077 GB, free: 8.301 MB / 330.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 () * 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 9.588e-05/0.5771, allocations: 118.6 kB / 0.5078 GB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.5772, allocations: 68.41 kB / 0.5079 GB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.5775, allocations: 126.3 kB / 0.508 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5775, allocations: 0 / 0.508 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5775, allocations: 0 / 0.508 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5776, allocations: 3.844 kB / 0.508 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.5778, allocations: 224.2 kB / 0.5082 GB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.5779, allocations: 3.844 kB / 0.5082 GB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.578, allocations: 15.52 kB / 0.5082 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.578, allocations: 3.953 kB / 0.5082 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.578, allocations: 6.719 kB / 0.5082 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5781, allocations: 11.72 kB / 0.5082 GB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5781, allocations: 128 / 0.5082 GB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.5784, allocations: 214.8 kB / 0.5084 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.5785, allocations: 123.4 kB / 0.5086 GB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.5786, allocations: 7.75 kB / 0.5086 GB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.5787, allocations: 0 / 0.5086 GB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.5788, allocations: 11.64 kB / 0.5086 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.5789, allocations: 7.812 kB / 0.5086 GB, free: 7.582 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.5792, allocations: 234.5 kB / 0.5088 GB, free: 7.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5792, allocations: 0 / 0.5088 GB, free: 7.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004527/0.5796, allocations: 53.75 kB / 0.5089 GB, free: 7.465 MB / 330.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) * 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.001046/0.5807, allocations: 373.5 kB / 0.5092 GB, free: 7.172 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003224/0.581, allocations: 86.03 kB / 0.5093 GB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5811, allocations: 0 / 0.5093 GB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.5812, allocations: 40.73 kB / 0.5093 GB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.5817, allocations: 60.77 kB / 0.5094 GB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007422/0.5825, allocations: 299.1 kB / 0.5097 GB, free: 6.957 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.5827, allocations: 0.7488 MB / 0.5104 GB, free: 6.227 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.5829, allocations: 28.58 kB / 0.5104 GB, free: 6.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.401e-05/0.583, allocations: 22.61 kB / 0.5105 GB, free: 6.211 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.583, allocations: 4 kB / 0.5105 GB, free: 6.207 MB / 330.7 MB Notification: Performance of Templates: time 0.008766/0.5918, allocations: 2.68 MB / 0.5131 GB, free: 4.867 MB / 330.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/jenkins1/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