Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.003909/0.003909, allocations: 187.2 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7356/0.7356, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 221.3 MB / 395 MB, free: 10.14 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 103.5 kB / 477.8 MB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4385/0.4396, allocations: 88.44 MB / 0.5529 GB, free: 89.17 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.6046, allocations: 82.3 MB / 0.6333 GB, free: 13.96 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.084/1.688, allocations: 358.6 MB / 0.9835 GB, free: 263.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/1.689, allocations: 92.67 kB / 0.9836 GB, free: 263.8 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.3374/2.026, allocations: 178.5 MB / 1.158 GB, free: 95.44 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/2.026, allocations: 8 kB / 1.158 GB, free: 95.43 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.694e-05/2.026, allocations: 59.28 kB / 1.158 GB, free: 95.37 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/2.027, allocations: 437.4 kB / 1.158 GB, free: 94.9 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/2.027, allocations: 4 kB / 1.158 GB, free: 94.9 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/2.027, allocations: 23.98 kB / 1.158 GB, free: 94.88 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002237/2.027, allocations: 124.8 kB / 1.159 GB, free: 94.75 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/2.027, allocations: 158.4 kB / 1.159 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/2.027, allocations: 3.938 kB / 1.159 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/2.027, allocations: 0 / 1.159 GB, free: 94.59 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/2.027, allocations: 11.91 kB / 1.159 GB, free: 94.58 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/2.029, allocations: 0.8789 MB / 1.16 GB, free: 93.63 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/2.029, allocations: 122.5 kB / 1.16 GB, free: 93.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.575e-05/2.029, allocations: 56.84 kB / 1.16 GB, free: 93.45 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/2.029, allocations: 340.4 kB / 1.16 GB, free: 93.04 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/2.029, allocations: 30.56 kB / 1.16 GB, free: 93 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/2.029, allocations: 0 / 1.16 GB, free: 93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0003925/2.03, allocations: 165.3 kB / 1.16 GB, free: 92.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.563e-05/2.03, allocations: 51.41 kB / 1.16 GB, free: 92.77 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/2.03, allocations: 369.1 kB / 1.161 GB, free: 92.4 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/2.03, allocations: 29.64 kB / 1.161 GB, free: 92.37 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.117e-05/2.03, allocations: 172.3 kB / 1.161 GB, free: 92.19 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/2.03, allocations: 43.36 kB / 1.161 GB, free: 92.15 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/2.03, allocations: 0 / 1.161 GB, free: 92.15 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.024e-05/2.03, allocations: 350.8 kB / 1.161 GB, free: 91.8 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.146e-05/2.03, allocations: 47.98 kB / 1.161 GB, free: 91.75 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/2.03, allocations: 147.1 kB / 1.161 GB, free: 91.57 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/2.031, allocations: 80.5 kB / 1.162 GB, free: 91.49 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/2.031, allocations: 4 kB / 1.162 GB, free: 91.48 MB / 0.6823 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003473/2.031, allocations: 215.8 kB / 1.162 GB, free: 91.27 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/2.031, allocations: 278.9 kB / 1.162 GB, free: 90.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/2.031, allocations: 0 / 1.162 GB, free: 90.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/2.031, allocations: 4 kB / 1.162 GB, free: 90.97 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/2.031, allocations: 51.91 kB / 1.162 GB, free: 90.92 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/2.031, allocations: 4 kB / 1.162 GB, free: 90.92 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/2.032, allocations: 43.8 kB / 1.162 GB, free: 90.88 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/2.032, allocations: 12 kB / 1.162 GB, free: 90.86 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.42e-06/2.032, allocations: 4 kB / 1.162 GB, free: 90.86 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002838/2.032, allocations: 139.8 kB / 1.162 GB, free: 90.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-06/2.032, allocations: 0 / 1.162 GB, free: 90.72 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-06/2.032, allocations: 3.938 kB / 1.162 GB, free: 90.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/2.032, allocations: 47.97 kB / 1.162 GB, free: 90.67 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-06/2.032, allocations: 7.938 kB / 1.162 GB, free: 90.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/2.033, allocations: 35.81 kB / 1.162 GB, free: 90.63 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/2.033, allocations: 19.92 kB / 1.162 GB, free: 90.61 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.286e-05/2.033, allocations: 112.9 kB / 1.162 GB, free: 90.49 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/2.033, allocations: 39.53 kB / 1.162 GB, free: 90.45 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004322/2.033, allocations: 219.7 kB / 1.163 GB, free: 90.23 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/2.033, allocations: 4 kB / 1.163 GB, free: 90.23 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/2.033, allocations: 7.906 kB / 1.163 GB, free: 90.22 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/2.033, allocations: 4 kB / 1.163 GB, free: 90.22 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007065/2.034, allocations: 0.627 MB / 1.163 GB, free: 89.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/2.034, allocations: 4.125 kB / 1.163 GB, free: 89.53 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/2.034, allocations: 36.11 kB / 1.163 GB, free: 89.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/2.034, allocations: 0 / 1.163 GB, free: 89.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/2.034, allocations: 11.97 kB / 1.163 GB, free: 89.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/2.034, allocations: 0 / 1.163 GB, free: 89.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/2.034, allocations: 4 kB / 1.163 GB, free: 89.48 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003216/2.034, allocations: 356.2 kB / 1.164 GB, free: 89.08 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003945/2.035, allocations: 0.7389 MB / 1.164 GB, free: 88.29 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/2.035, allocations: 148.4 kB / 1.165 GB, free: 88.12 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/2.035, allocations: 0 / 1.165 GB, free: 88.12 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/2.035, allocations: 31.91 kB / 1.165 GB, free: 88.09 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/2.035, allocations: 15.89 kB / 1.165 GB, free: 88.08 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/2.035, allocations: 11.98 kB / 1.165 GB, free: 88.07 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.000223/2.036, allocations: 279.2 kB / 1.165 GB, free: 87.8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002345/2.038, allocations: 291.5 kB / 1.165 GB, free: 87.51 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001024/2.039, allocations: 0.4915 MB / 1.166 GB, free: 87.09 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004041/2.039, allocations: 245 kB / 1.166 GB, free: 86.85 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/2.039, allocations: 0 / 1.166 GB, free: 86.85 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.915e-05/2.039, allocations: 67.92 kB / 1.166 GB, free: 86.79 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/2.041, allocations: 181.4 kB / 1.166 GB, free: 86.61 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009756/2.042, allocations: 0.5045 MB / 1.167 GB, free: 86.07 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/2.042, allocations: 0.8698 MB / 1.167 GB, free: 85.17 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/2.042, allocations: 0 / 1.167 GB, free: 85.17 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)