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.001005/0.001005, allocations: 171.5 kB / 16.8 MB, free: 4.883 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.562/1.562, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007806/0.0007805, allocations: 85.05 kB / 271.3 MB, free: 8.254 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.07384/0.07384, allocations: 12.59 MB / 332.2 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004366, allocations: 23.94 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1041, allocations: 50.36 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3822/0.4864, allocations: 82.08 MB / 0.5134 GB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.4868, allocations: 86.06 kB / 0.5134 GB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01973/0.5065, allocations: 6.064 MB / 0.5194 GB, free: 8.691 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.658e-06/0.5066, allocations: 0 / 0.5194 GB, free: 8.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.493e-05/0.5066, allocations: 4 kB / 0.5194 GB, free: 8.688 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.0009489/0.5076, allocations: 0.5367 MB / 0.5199 GB, free: 8.113 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.5077, allocations: 8.031 kB / 0.5199 GB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.5078, allocations: 28.66 kB / 0.5199 GB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005176/0.5083, allocations: 302.5 kB / 0.5202 GB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.5083, allocations: 4.375 kB / 0.5202 GB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.5084, allocations: 8 kB / 0.5202 GB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003952/0.5088, allocations: 176.3 kB / 0.5204 GB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.5088, allocations: 4.188 kB / 0.5204 GB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.5088, allocations: 7.875 kB / 0.5204 GB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.5089, allocations: 0 / 0.5204 GB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.509, allocations: 47.34 kB / 0.5205 GB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000663/0.5097, allocations: 487 kB / 0.5209 GB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.51, allocations: 146.6 kB / 0.5211 GB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.5101, allocations: 64.86 kB / 0.5211 GB, free: 6.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.5102, allocations: 0 / 0.5211 GB, free: 6.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.5104, allocations: 118.4 kB / 0.5212 GB, free: 6.723 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.184e-06/0.5104, allocations: 0 / 0.5212 GB, free: 6.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005177/0.5109, allocations: 169.6 kB / 0.5214 GB, free: 6.582 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.511, allocations: 187.5 kB / 0.5216 GB, free: 6.359 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.5114, allocations: 332.6 kB / 0.5219 GB, free: 6.082 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.5115, allocations: 36.33 kB / 0.5219 GB, free: 6.043 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.126e-05/0.5115, allocations: 121 kB / 0.522 GB, free: 5.945 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.5116, allocations: 22.98 kB / 0.5221 GB, free: 5.926 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.5116, allocations: 3.625 kB / 0.5221 GB, free: 5.926 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.5117, allocations: 337.7 kB / 0.5224 GB, free: 5.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.381e-05/0.5118, allocations: 25.67 kB / 0.5224 GB, free: 5.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.5119, allocations: 108.8 kB / 0.5225 GB, free: 5.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.5121, allocations: 99.27 kB / 0.5226 GB, free: 5.367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.5122, allocations: 4 kB / 0.5226 GB, free: 5.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003123/0.5125, allocations: 139.3 kB / 0.5227 GB, free: 5.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.5125, allocations: 4 kB / 0.5227 GB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.5125, allocations: 4 kB / 0.5228 GB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.5126, allocations: 0 / 0.5228 GB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.5127, allocations: 27.92 kB / 0.5228 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.5127, allocations: 0 / 0.5228 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.5129, allocations: 15.7 kB / 0.5228 GB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.5129, allocations: 8 kB / 0.5228 GB, free: 5.191 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 () * 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.0001463/0.513, allocations: 160.4 kB / 0.523 GB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.5132, allocations: 76.34 kB / 0.523 GB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003247/0.5135, allocations: 123.6 kB / 0.5231 GB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.5135, allocations: 0 / 0.5231 GB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.5135, allocations: 4.062 kB / 0.5231 GB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.5136, allocations: 4 kB / 0.5232 GB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.5138, allocations: 256.1 kB / 0.5234 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5138, allocations: 0 / 0.5234 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.442e-05/0.5139, allocations: 19.97 kB / 0.5234 GB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5139, allocations: 7.984 kB / 0.5234 GB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.514, allocations: 3.688 kB / 0.5234 GB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.514, allocations: 4 kB / 0.5234 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.514, allocations: 0 / 0.5234 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.5143, allocations: 191.3 kB / 0.5236 GB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.5145, allocations: 127.9 kB / 0.5237 GB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.5145, allocations: 4 kB / 0.5237 GB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.5146, allocations: 7.188 kB / 0.5237 GB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.5147, allocations: 15.8 kB / 0.5238 GB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.5147, allocations: 12 kB / 0.5238 GB, free: 4.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002808/0.515, allocations: 243.9 kB / 0.524 GB, free: 4.016 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.515, allocations: 0 / 0.524 GB, free: 4.016 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004318/0.5155, allocations: 58.86 kB / 0.5241 GB, free: 3.965 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) * 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.001173/0.5166, allocations: 432.4 kB / 0.5245 GB, free: 3.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003458/0.517, allocations: 101.3 kB / 0.5246 GB, free: 3.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.517, allocations: 4.062 kB / 0.5246 GB, free: 3.465 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.5171, allocations: 47.53 kB / 0.5246 GB, free: 3.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.5178, allocations: 62 kB / 0.5247 GB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007866/0.5186, allocations: 431.5 kB / 0.5251 GB, free: 2.965 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.5188, allocations: 0.7435 MB / 0.5258 GB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.5189, allocations: 33.69 kB / 0.5258 GB, free: 2.168 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.519, allocations: 26.73 kB / 0.5259 GB, free: 2.145 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.519, allocations: 7.938 kB / 0.5259 GB, free: 2.137 MB / 330.7 MB Notification: Performance of Templates: time 0.008359/0.5274, allocations: 2.884 MB / 0.5287 GB, free: 15.27 MB / 346.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