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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.001626, allocations: 189.1 kB / 7.845 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.0009904/0.0009904, allocations: 95.45 kB / 261.5 MB, free: 13.54 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.07545/0.07545, allocations: 12.59 MB / 322 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.444e-06, allocations: 0 / 378.4 MB, free: 75.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09545/0.09547, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2936/0.3891, allocations: 81.2 MB / 0.498 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3894, allocations: 83.62 kB / 0.4981 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01527/0.4047, allocations: 5.652 MB / 0.5036 GB, free: 10.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.617e-05/0.4048, allocations: 3.719 kB / 0.5036 GB, free: 10.91 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.0006525/0.4054, allocations: 0.4913 MB / 0.5041 GB, free: 10.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4055, allocations: 8.188 kB / 0.5041 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.185e-05/0.4056, allocations: 30.94 kB / 0.5041 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.4061, allocations: 284.9 kB / 0.5044 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.4061, allocations: 7.719 kB / 0.5044 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.4061, allocations: 3.688 kB / 0.5044 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001124/0.4062, allocations: 48.92 kB / 0.5045 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.4065, allocations: 157.2 kB / 0.5046 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4065, allocations: 3.938 kB / 0.5046 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.4065, allocations: 3.938 kB / 0.5046 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.4065, allocations: 3.844 kB / 0.5046 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.407, allocations: 465 kB / 0.5051 GB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.4071, allocations: 129.6 kB / 0.5052 GB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.715e-05/0.4072, allocations: 56.92 kB / 0.5052 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.4072, allocations: 7.188 kB / 0.5052 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001015/0.4073, allocations: 89.3 kB / 0.5053 GB, free: 9.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.505e-06/0.4074, allocations: 3.984 kB / 0.5053 GB, free: 9.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002364/0.4076, allocations: 116.9 kB / 0.5054 GB, free: 9.359 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.4077, allocations: 191.7 kB / 0.5056 GB, free: 9.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.4079, allocations: 291.9 kB / 0.5059 GB, free: 9.004 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.408, allocations: 29.55 kB / 0.5059 GB, free: 8.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.408, allocations: 98.47 kB / 0.506 GB, free: 8.883 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.408, allocations: 19.39 kB / 0.506 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.408, allocations: 0 / 0.506 GB, free: 8.871 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.981e-05/0.4081, allocations: 329.5 kB / 0.5064 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.191e-05/0.4082, allocations: 29.92 kB / 0.5064 GB, free: 8.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.052e-05/0.4082, allocations: 96.91 kB / 0.5065 GB, free: 8.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.481e-05/0.4083, allocations: 32.36 kB / 0.5065 GB, free: 8.457 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4083, allocations: 0 / 0.5065 GB, free: 8.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001632/0.4085, allocations: 126.8 kB / 0.5066 GB, free: 8.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.4085, allocations: 7.656 kB / 0.5066 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.4085, allocations: 0 / 0.5066 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4085, allocations: 3.844 kB / 0.5066 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.4086, allocations: 27.08 kB / 0.5067 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.4087, allocations: 3.875 kB / 0.5067 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.4088, allocations: 11.72 kB / 0.5067 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.4088, allocations: 8.031 kB / 0.5067 GB, free: 8.375 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 6.328e-05/0.4089, allocations: 112.5 kB / 0.5068 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.4089, allocations: 63.81 kB / 0.5069 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001959/0.4091, allocations: 112 kB / 0.507 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4092, allocations: 7.75 kB / 0.507 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4092, allocations: 128 / 0.507 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.4092, allocations: 3.984 kB / 0.507 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.4094, allocations: 231.8 kB / 0.5072 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.4094, allocations: 0 / 0.5072 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.422e-05/0.4095, allocations: 26.17 kB / 0.5072 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4095, allocations: 0 / 0.5072 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.4095, allocations: 3.656 kB / 0.5072 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4095, allocations: 3.938 kB / 0.5072 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.4095, allocations: 3.75 kB / 0.5072 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002282/0.4097, allocations: 209.1 kB / 0.5074 GB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.882e-05/0.4099, allocations: 124.4 kB / 0.5076 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.4099, allocations: 0 / 0.5076 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/0.41, allocations: 7.828 kB / 0.5076 GB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.496e-05/0.4101, allocations: 14.77 kB / 0.5076 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.4101, allocations: 3.781 kB / 0.5076 GB, free: 7.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001987/0.4103, allocations: 228.3 kB / 0.5078 GB, free: 7.562 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002925/0.4106, allocations: 57.7 kB / 0.5079 GB, free: 7.543 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.000605/0.4112, allocations: 329.8 kB / 0.5082 GB, free: 7.289 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.4114, allocations: 86.53 kB / 0.5082 GB, free: 7.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4114, allocations: 0 / 0.5082 GB, free: 7.273 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.283e-05/0.4115, allocations: 41.67 kB / 0.5083 GB, free: 7.266 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.4118, allocations: 54.34 kB / 0.5083 GB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000463/0.4123, allocations: 292.6 kB / 0.5086 GB, free: 7.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.4125, allocations: 0.7788 MB / 0.5094 GB, free: 6.348 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4125, allocations: 0 / 0.5094 GB, free: 6.348 MB / 330.7 MB Notification: Performance of Templates: time 0.006213/0.4187, allocations: 2.674 MB / 0.512 GB, free: 5.016 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/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