Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) [: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.001045/0.001045, allocations: 179.4 kB / 8.517 MB, free: 1.855 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.146/1.146, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0008897/0.0008897, allocations: 87.23 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1572/0.1572, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1866/0.3438, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.4403, allocations: 61.92 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2593/0.6996, allocations: 89.21 MB / 0.5813 GB, free: 7.543 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.6999, allocations: 68.91 kB / 0.5814 GB, free: 7.5 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.03624/0.7361, allocations: 13.57 MB / 0.5946 GB, free: 9.855 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.7362, allocations: 19.88 kB / 0.5946 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.7363, allocations: 51.38 kB / 0.5947 GB, free: 9.785 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008198/0.7372, allocations: 487.2 kB / 0.5951 GB, free: 9.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.7372, allocations: 11.91 kB / 0.5952 GB, free: 9.258 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.7372, allocations: 11.98 kB / 0.5952 GB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002037/0.7375, allocations: 96.44 kB / 0.5953 GB, free: 9.152 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.7378, allocations: 241.2 kB / 0.5955 GB, free: 8.875 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.7378, allocations: 0 / 0.5955 GB, free: 8.875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.7378, allocations: 11.92 kB / 0.5955 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.7378, allocations: 4 kB / 0.5955 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.7389, allocations: 0.8918 MB / 0.5964 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/0.7393, allocations: 263 kB / 0.5966 GB, free: 7.625 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.7394, allocations: 107.5 kB / 0.5967 GB, free: 7.508 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.7395, allocations: 0 / 0.5967 GB, free: 7.508 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.7397, allocations: 199.5 kB / 0.5969 GB, free: 7.289 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.7397, allocations: 4 kB / 0.5969 GB, free: 7.285 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004973/0.7402, allocations: 260.9 kB / 0.5972 GB, free: 7.023 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.7404, allocations: 342.1 kB / 0.5975 GB, free: 6.609 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.7411, allocations: 0.5527 MB / 0.598 GB, free: 6.051 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.7411, allocations: 33.7 kB / 0.5981 GB, free: 6.012 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.7412, allocations: 136.5 kB / 0.5982 GB, free: 5.875 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.861e-05/0.7413, allocations: 59.36 kB / 0.5983 GB, free: 5.816 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.25e-05/0.7413, allocations: 8 kB / 0.5983 GB, free: 5.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.7414, allocations: 363.8 kB / 0.5986 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.7415, allocations: 75.98 kB / 0.5987 GB, free: 5.371 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.7418, allocations: 245.1 kB / 0.5989 GB, free: 5.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.7419, allocations: 100.1 kB / 0.599 GB, free: 4.973 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.742, allocations: 0 / 0.599 GB, free: 4.973 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004374/0.7424, allocations: 284.8 kB / 0.5993 GB, free: 4.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.7424, allocations: 5.094 kB / 0.5993 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.7424, allocations: 0 / 0.5993 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.7425, allocations: 4 kB / 0.5993 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.7427, allocations: 63.81 kB / 0.5993 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.7427, allocations: 0 / 0.5993 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.743, allocations: 31.95 kB / 0.5994 GB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.743, allocations: 11.98 kB / 0.5994 GB, free: 4.574 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.0001069/0.7431, allocations: 138.3 kB / 0.5995 GB, free: 4.434 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.643e-05/0.7432, allocations: 51.34 kB / 0.5996 GB, free: 4.383 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000551/0.7438, allocations: 313.3 kB / 0.5999 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.7438, allocations: 3.906 kB / 0.5999 GB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.7438, allocations: 4 kB / 0.5999 GB, free: 4.059 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.7438, allocations: 3.984 kB / 0.5999 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003698/0.7442, allocations: 405.7 kB / 0.6003 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7442, allocations: 3.938 kB / 0.6003 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.7443, allocations: 31.98 kB / 0.6003 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.7443, allocations: 0 / 0.6003 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.7444, allocations: 11.98 kB / 0.6003 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.7444, allocations: 7.938 kB / 0.6003 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7444, allocations: 0 / 0.6003 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004399/0.7448, allocations: 365.8 kB / 0.6007 GB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000528/0.7454, allocations: 0.7372 MB / 0.6014 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.7455, allocations: 164.3 kB / 0.6015 GB, free: 2.195 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.198e-05/0.7456, allocations: 4 kB / 0.6016 GB, free: 2.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.7458, allocations: 11.98 kB / 0.6016 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.442e-05/0.7459, allocations: 39.94 kB / 0.6016 GB, free: 2.141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.746, allocations: 15.98 kB / 0.6016 GB, free: 2.125 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004845/0.7465, allocations: 442.9 kB / 0.602 GB, free: 1.695 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001052/0.7475, allocations: 119.8 kB / 0.6022 GB, free: 1.578 MB / 410.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: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0007681/0.7483, allocations: 377.1 kB / 0.6025 GB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004169/0.7487, allocations: 235.8 kB / 0.6027 GB, free: 1.055 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7487, allocations: 0 / 0.6027 GB, free: 1.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.749, allocations: 180 kB / 0.6029 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.7496, allocations: 129.1 kB / 0.603 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.7506, allocations: 0.6127 MB / 0.6036 GB, free: 112 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005285/0.7512, allocations: 0.9048 MB / 0.6045 GB, free: 15.18 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7512, allocations: 4 kB / 0.6045 GB, free: 15.17 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1)