Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") [: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.001631/0.001631, allocations: 188.5 kB / 7.846 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.335/1.335, allocations: 205.2 MB / 213.5 MB, free: 13.87 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.0008627/0.0008626, allocations: 85.44 kB / 261.5 MB, free: 13.56 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.07995/0.07995, allocations: 12.6 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.542e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.08751, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.246/0.3335, allocations: 81.13 MB / 0.4979 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3338, allocations: 79.3 kB / 0.498 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01455/0.3484, allocations: 5.656 MB / 0.5035 GB, free: 11.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.3484, allocations: 10.5 kB / 0.5035 GB, free: 11.18 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.0004349/0.3489, allocations: 0.4933 MB / 0.504 GB, free: 10.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3489, allocations: 11.53 kB / 0.504 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.885e-05/0.349, allocations: 27.16 kB / 0.5041 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.3493, allocations: 298.8 kB / 0.5044 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.3494, allocations: 0 / 0.5044 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.3494, allocations: 7.531 kB / 0.5044 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001035/0.3495, allocations: 37.83 kB / 0.5044 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.3497, allocations: 176.6 kB / 0.5046 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3498, allocations: 0 / 0.5046 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3498, allocations: 0 / 0.5046 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3498, allocations: 3.906 kB / 0.5046 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004192/0.3502, allocations: 382.2 kB / 0.5049 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.3504, allocations: 133.6 kB / 0.5051 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.031e-05/0.3504, allocations: 53.97 kB / 0.5051 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.3505, allocations: 3.984 kB / 0.5051 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.72e-05/0.3506, allocations: 73.53 kB / 0.5052 GB, free: 9.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.764e-06/0.3506, allocations: 0 / 0.5052 GB, free: 9.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002196/0.3508, allocations: 123.1 kB / 0.5053 GB, free: 9.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.3509, allocations: 191.2 kB / 0.5055 GB, free: 9.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.3511, allocations: 290.6 kB / 0.5058 GB, free: 9.375 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.3511, allocations: 29.55 kB / 0.5058 GB, free: 9.344 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.3512, allocations: 107.2 kB / 0.5059 GB, free: 9.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.3512, allocations: 15.38 kB / 0.5059 GB, free: 9.238 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.3512, allocations: 0 / 0.5059 GB, free: 9.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.509e-05/0.3513, allocations: 333.5 kB / 0.5062 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.685e-05/0.3513, allocations: 18.78 kB / 0.5062 GB, free: 8.918 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.213e-05/0.3514, allocations: 110.7 kB / 0.5063 GB, free: 8.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.343e-05/0.3515, allocations: 34.11 kB / 0.5064 GB, free: 8.816 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3515, allocations: 7.906 kB / 0.5064 GB, free: 8.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001629/0.3516, allocations: 121.4 kB / 0.5065 GB, free: 8.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.3517, allocations: 3.875 kB / 0.5065 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3517, allocations: 3.844 kB / 0.5065 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.3517, allocations: 3.906 kB / 0.5065 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.3518, allocations: 31.31 kB / 0.5065 GB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3518, allocations: 7.781 kB / 0.5066 GB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.818e-05/0.3519, allocations: 15.95 kB / 0.5066 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.3519, allocations: 3.844 kB / 0.5066 GB, free: 8.723 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.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.967e-05/0.352, allocations: 116.2 kB / 0.5067 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.598e-05/0.3521, allocations: 71.27 kB / 0.5068 GB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.3523, allocations: 110.7 kB / 0.5069 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3523, allocations: 3.844 kB / 0.5069 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3523, allocations: 96 / 0.5069 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3524, allocations: 7.844 kB / 0.5069 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.3525, allocations: 224.4 kB / 0.5071 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3525, allocations: 7.828 kB / 0.5071 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.255e-05/0.3526, allocations: 15.56 kB / 0.5071 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3526, allocations: 0 / 0.5071 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3526, allocations: 11.48 kB / 0.5071 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3527, allocations: 0 / 0.5071 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3527, allocations: 3.906 kB / 0.5071 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001908/0.3529, allocations: 199 kB / 0.5073 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.353, allocations: 130.1 kB / 0.5074 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.353, allocations: 0 / 0.5074 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.918e-05/0.3531, allocations: 7.812 kB / 0.5074 GB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.3531, allocations: 14.92 kB / 0.5075 GB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.3532, allocations: 7.781 kB / 0.5075 GB, free: 8 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001897/0.3534, allocations: 234.1 kB / 0.5077 GB, free: 7.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002761/0.3536, allocations: 45.25 kB / 0.5077 GB, free: 7.895 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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.0005854/0.3542, allocations: 334.4 kB / 0.508 GB, free: 7.641 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.3544, allocations: 91.83 kB / 0.5081 GB, free: 7.625 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3544, allocations: 0 / 0.5081 GB, free: 7.625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.767e-05/0.3545, allocations: 28.72 kB / 0.5082 GB, free: 7.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.3549, allocations: 62.11 kB / 0.5082 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004583/0.3554, allocations: 297.2 kB / 0.5085 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.3556, allocations: 0.7767 MB / 0.5093 GB, free: 6.699 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3556, allocations: 0 / 0.5093 GB, free: 6.699 MB / 330.7 MB Notification: Performance of Templates: time 0.006529/0.3621, allocations: 2.76 MB / 0.512 GB, free: 5.324 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,backSample1.y,sample.y,shiftSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.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