Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.003061/0.003061, allocations: 179.6 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6671/0.6671, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.391/1.391, allocations: 221.3 MB / 395 MB, free: 10.16 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.001063/0.001063, allocations: 95.55 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4004/0.4016, allocations: 88.44 MB / 0.5529 GB, free: 89.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.5405, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.613, allocations: 392.2 MB / 1.016 GB, free: 202.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/1.614, allocations: 99.59 kB / 1.016 GB, free: 202.6 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 2.698/4.312, allocations: 0.9939 GB / 2.01 GB, free: 10.95 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/4.312, allocations: 8 kB / 2.01 GB, free: 10.94 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/4.313, allocations: 328.2 kB / 2.011 GB, free: 10.62 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004558/4.318, allocations: 2.484 MB / 2.013 GB, free: 8.062 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/4.318, allocations: 48 kB / 2.013 GB, free: 8.016 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/4.318, allocations: 111.9 kB / 2.013 GB, free: 7.906 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001774/4.32, allocations: 0.99 MB / 2.014 GB, free: 6.914 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/4.322, allocations: 1.313 MB / 2.015 GB, free: 5.535 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.816e-05/4.322, allocations: 0 / 2.015 GB, free: 5.535 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/4.322, allocations: 7.906 kB / 2.015 GB, free: 5.527 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-05/4.322, allocations: 44 kB / 2.016 GB, free: 5.484 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3377/4.66, allocations: 8.026 MB / 2.023 GB, free: 106.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/4.66, allocations: 416.1 kB / 2.024 GB, free: 106.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004329/4.661, allocations: 312.1 kB / 2.024 GB, free: 106.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005055/4.661, allocations: 0.7518 MB / 2.025 GB, free: 105.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/4.661, allocations: 42.44 kB / 2.025 GB, free: 105.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=60): time 3.797e-06/4.661, allocations: 1.25 kB / 2.025 GB, free: 105.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=60): time 0.001625/4.663, allocations: 0.7341 MB / 2.026 GB, free: 105.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.376e-05/4.663, allocations: 58.12 kB / 2.026 GB, free: 105.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002108/4.665, allocations: 1.718 MB / 2.027 GB, free: 105.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001548/4.665, allocations: 29.61 kB / 2.027 GB, free: 105.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/4.666, allocations: 0.753 MB / 2.028 GB, free: 105 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/4.666, allocations: 203.9 kB / 2.028 GB, free: 104.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.326e-05/4.666, allocations: 2.906 kB / 2.028 GB, free: 104.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.341e-05/4.666, allocations: 352.6 kB / 2.029 GB, free: 104.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/4.667, allocations: 312.4 kB / 2.029 GB, free: 104.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006756/4.667, allocations: 0.7566 MB / 2.03 GB, free: 104.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/4.668, allocations: 461.1 kB / 2.03 GB, free: 104.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/4.668, allocations: 3.844 kB / 2.03 GB, free: 104.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00173/4.67, allocations: 1.122 MB / 2.031 GB, free: 104 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005292/4.67, allocations: 3.159 MB / 2.034 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/4.67, allocations: 7.625 kB / 2.034 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/4.671, allocations: 17.59 kB / 2.034 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009992/4.672, allocations: 259.7 kB / 2.035 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/4.672, allocations: 20.78 kB / 2.035 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/4.673, allocations: 201.7 kB / 2.035 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.479e-05/4.673, allocations: 55.47 kB / 2.035 GB, free: 100.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.052e-06/4.673, allocations: 3.938 kB / 2.035 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001362/4.675, allocations: 0.8574 MB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/4.675, allocations: 9.031 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/4.675, allocations: 11.41 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008738/4.676, allocations: 255.6 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/4.676, allocations: 21.25 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/4.677, allocations: 176.8 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-05/4.677, allocations: 52.03 kB / 2.036 GB, free: 100.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * 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.0002353/4.678, allocations: 141.7 kB / 2.036 GB, free: 100.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/4.678, allocations: 211.5 kB / 2.036 GB, free: 100.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/4.679, allocations: 0.8549 MB / 2.037 GB, free: 100.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/4.679, allocations: 11.11 kB / 2.037 GB, free: 100.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/4.68, allocations: 3.625 kB / 2.037 GB, free: 100.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008202/4.68, allocations: 0.658 MB / 2.038 GB, free: 100.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003745/4.684, allocations: 2.432 MB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/4.684, allocations: 3.469 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/4.685, allocations: 146.4 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.427e-06/4.685, allocations: 8.297 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.976e-05/4.685, allocations: 12.67 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/4.685, allocations: 3.562 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/4.685, allocations: 1.594 kB / 2.04 GB, free: 99.7 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001517/4.686, allocations: 1.3 MB / 2.042 GB, free: 99.33 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002118/4.688, allocations: 2.134 MB / 2.044 GB, free: 98.59 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008455/4.689, allocations: 443.7 kB / 2.044 GB, free: 98.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002594/4.69, allocations: 3.375 kB / 2.044 GB, free: 98.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/4.691, allocations: 159.1 kB / 2.044 GB, free: 98.37 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/4.691, allocations: 39.81 kB / 2.044 GB, free: 98.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.545e-05/4.691, allocations: 31.92 kB / 2.044 GB, free: 98.37 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.001898/4.693, allocations: 1.263 MB / 2.046 GB, free: 98.23 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.005622/4.699, allocations: 1.551 MB / 2.047 GB, free: 98.15 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002/4.701, allocations: 1.199 MB / 2.048 GB, free: 97.97 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001978/4.703, allocations: 1.323 MB / 2.05 GB, free: 97.95 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/4.703, allocations: 0 / 2.05 GB, free: 97.95 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003564/4.703, allocations: 306.2 kB / 2.05 GB, free: 97.95 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005257/4.708, allocations: 1.228 MB / 2.051 GB, free: 97.93 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/4.713, allocations: 2.881 MB / 2.054 GB, free: 97.16 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001325/4.715, allocations: 1.847 MB / 2.056 GB, free: 96.41 MB / 0.698 GB Notification: Performance of SimCode: time 5.51e-07/4.715, allocations: 0 / 2.056 GB, free: 96.41 MB / 0.698 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)