Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [: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 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 189.5 kB / 8.138 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008538/0.0008538, allocations: 101.9 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.285e-06/8.306e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2171, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09322/0.3104, allocations: 80.87 MB / 467.8 MB, free: 5.934 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.3107, allocations: 91.88 kB / 467.9 MB, free: 5.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02523/0.336, allocations: 8.617 MB / 476.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.336, allocations: 8 kB / 476.5 MB, free: 13.25 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006818/0.3367, allocations: 0.5266 MB / 477 MB, free: 12.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3368, allocations: 12.03 kB / 477 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.3369, allocations: 31.62 kB / 477.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004696/0.3373, allocations: 307.1 kB / 477.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3374, allocations: 4 kB / 477.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.3374, allocations: 8 kB / 477.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001741/0.3376, allocations: 79.91 kB / 477.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.3381, allocations: 292.9 kB / 477.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3381, allocations: 0 / 477.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.3381, allocations: 4 kB / 477.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3381, allocations: 4 kB / 477.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.3387, allocations: 394.8 kB / 478.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.3389, allocations: 187.9 kB / 478.3 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3391, allocations: 84.56 kB / 478.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.3391, allocations: 8.125 kB / 478.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.3392, allocations: 75.39 kB / 478.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.914e-06/0.3393, allocations: 0 / 478.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003414/0.3396, allocations: 173.2 kB / 478.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.3397, allocations: 162.2 kB / 478.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.34, allocations: 303.3 kB / 479.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.34, allocations: 29.7 kB / 479.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.3401, allocations: 104.6 kB / 479.2 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.3401, allocations: 31.8 kB / 479.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-06/0.3402, allocations: 4 kB / 479.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3403, allocations: 339.5 kB / 479.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.452e-05/0.3403, allocations: 36.45 kB / 479.6 MB, free: 9.828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3405, allocations: 179.3 kB / 479.8 MB, free: 9.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.481e-05/0.3406, allocations: 59.91 kB / 479.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3406, allocations: 0 / 479.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000305/0.3409, allocations: 205 kB / 480.1 MB, free: 9.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.341, allocations: 4 kB / 480.1 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.341, allocations: 5.031 kB / 480.1 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.341, allocations: 8.531 kB / 480.1 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.3412, allocations: 43.92 kB / 480.1 MB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3412, allocations: 11.94 kB / 480.1 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3413, allocations: 11.89 kB / 480.1 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3414, allocations: 12 kB / 480.2 MB, free: 9.227 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001091/0.3415, allocations: 118.9 kB / 480.3 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.3417, allocations: 133 kB / 480.4 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.3419, allocations: 123.4 kB / 480.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3419, allocations: 3.938 kB / 480.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3419, allocations: 4 kB / 480.5 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3419, allocations: 0 / 480.5 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.3421, allocations: 245.9 kB / 480.8 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3421, allocations: 4.125 kB / 480.8 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.3423, allocations: 32.84 kB / 480.8 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3423, allocations: 4 kB / 480.8 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.3423, allocations: 7.906 kB / 480.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3423, allocations: 0 / 480.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3423, allocations: 0 / 480.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003189/0.3427, allocations: 256.7 kB / 481.1 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3428, allocations: 136.6 kB / 481.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.3429, allocations: 3.984 kB / 481.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.915e-05/0.343, allocations: 8.938 kB / 481.2 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.343, allocations: 11.98 kB / 481.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.343, allocations: 8 kB / 481.2 MB, free: 8.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002245/0.3433, allocations: 239.1 kB / 481.5 MB, free: 7.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003574/0.3436, allocations: 51.94 kB / 481.5 MB, free: 7.754 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0007069/0.3444, allocations: 346.4 kB / 481.9 MB, free: 7.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002655/0.3446, allocations: 151.6 kB / 482 MB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3446, allocations: 4 kB / 482 MB, free: 7.352 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.87e-05/0.3447, allocations: 24 kB / 482 MB, free: 7.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.3452, allocations: 107.6 kB / 482.1 MB, free: 7.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.3458, allocations: 352.5 kB / 482.5 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.3462, allocations: 0.8063 MB / 483.3 MB, free: 6.02 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3462, allocations: 0 / 483.3 MB, free: 6.02 MB / 362.7 MB Notification: Performance of Templates: time 0.006698/0.3529, allocations: 3.274 MB / 486.6 MB, free: 2.773 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches