Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IDEAS_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.001614/0.001614, allocations: 177.7 kB / 7.457 MB, free: 1.539 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8641/0.8641, allocations: 133.5 MB / 141.4 MB, free: 4.895 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 221.3 MB / 395 MB, free: 13.84 MB / 322.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 90.84 kB / 477.8 MB, free: 11.13 MB / 402.8 MB Notification: Performance of FrontEnd - loaded program: time 0.357/0.358, allocations: 88.44 MB / 0.5529 GB, free: 49.95 MB / 402.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5475/0.9056, allocations: 82.3 MB / 0.6333 GB, free: 5.312 MB / 434.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7885/1.694, allocations: 392.2 MB / 1.016 GB, free: 77.21 MB / 0.6434 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/1.695, allocations: 106.9 kB / 1.016 GB, free: 77.16 MB / 0.6434 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 3.762/5.456, allocations: 0.9939 GB / 2.01 GB, free: 64.22 MB / 0.6902 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/5.456, allocations: 9.094 kB / 2.01 GB, free: 64.22 MB / 0.6902 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/5.458, allocations: 333.2 kB / 2.011 GB, free: 64.07 MB / 0.6902 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004964/5.463, allocations: 2.48 MB / 2.013 GB, free: 63.55 MB / 0.6902 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.533e-05/5.463, allocations: 46.06 kB / 2.013 GB, free: 63.55 MB / 0.6902 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/5.463, allocations: 103.3 kB / 2.013 GB, free: 63.55 MB / 0.6902 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001811/5.465, allocations: 0.9972 MB / 2.014 GB, free: 63.54 MB / 0.6902 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/5.467, allocations: 1.308 MB / 2.015 GB, free: 63.36 MB / 0.6902 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/5.467, allocations: 2.625 kB / 2.015 GB, free: 63.36 MB / 0.6902 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/5.467, allocations: 6.047 kB / 2.015 GB, free: 63.36 MB / 0.6902 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-05/5.467, allocations: 44.25 kB / 2.016 GB, free: 63.36 MB / 0.6902 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009208/5.476, allocations: 8.03 MB / 2.023 GB, free: 59.41 MB / 0.6902 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/5.477, allocations: 411 kB / 2.024 GB, free: 59.39 MB / 0.6902 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/5.477, allocations: 314.3 kB / 2.024 GB, free: 59.37 MB / 0.6902 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005347/5.478, allocations: 0.7489 MB / 2.025 GB, free: 58.53 MB / 0.6902 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/5.478, allocations: 47.33 kB / 2.025 GB, free: 58.48 MB / 0.6902 GB Notification: Performance of pre-optimization done (n=60): time 2.776e-06/5.478, allocations: 0 / 2.025 GB, free: 58.48 MB / 0.6902 GB Notification: Performance of matching and sorting (n=60): time 0.001525/5.479, allocations: 0.7316 MB / 2.026 GB, free: 58.33 MB / 0.6902 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/5.479, allocations: 59.14 kB / 2.026 GB, free: 58.27 MB / 0.6902 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/5.481, allocations: 1.713 MB / 2.027 GB, free: 58.04 MB / 0.6902 GB Notification: Performance of collectPreVariables (initialization): time 0.0001256/5.482, allocations: 32.95 kB / 2.027 GB, free: 58 MB / 0.6902 GB Notification: Performance of collectInitialEqns (initialization): time 0.000448/5.482, allocations: 0.747 MB / 2.028 GB, free: 57.6 MB / 0.6902 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/5.482, allocations: 207.7 kB / 2.028 GB, free: 57.46 MB / 0.6902 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/5.482, allocations: 2.406 kB / 2.028 GB, free: 57.46 MB / 0.6902 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/5.482, allocations: 347.4 kB / 2.029 GB, free: 57.16 MB / 0.6902 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004722/5.483, allocations: 311.6 kB / 2.029 GB, free: 57.15 MB / 0.6902 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/5.484, allocations: 0.7602 MB / 2.03 GB, free: 56.64 MB / 0.6902 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/5.485, allocations: 460.2 kB / 2.03 GB, free: 56.62 MB / 0.6902 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/5.485, allocations: 0 / 2.03 GB, free: 56.62 MB / 0.6902 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002319/5.487, allocations: 1.132 MB / 2.031 GB, free: 56.47 MB / 0.6902 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005922/5.488, allocations: 3.157 MB / 2.034 GB, free: 53.1 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/5.488, allocations: 7.719 kB / 2.034 GB, free: 53.1 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.237e-05/5.488, allocations: 14.09 kB / 2.034 GB, free: 53.1 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/5.489, allocations: 259.9 kB / 2.034 GB, free: 53.1 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.025e-05/5.489, allocations: 21.09 kB / 2.035 GB, free: 53.1 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/5.491, allocations: 200 kB / 2.035 GB, free: 53.04 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/5.491, allocations: 56.11 kB / 2.035 GB, free: 53.04 MB / 0.6902 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/5.491, allocations: 7.281 kB / 2.035 GB, free: 53.04 MB / 0.6902 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001609/5.493, allocations: 0.8563 MB / 2.036 GB, free: 53.02 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/5.493, allocations: 8.844 kB / 2.036 GB, free: 53.02 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/5.493, allocations: 16.88 kB / 2.036 GB, free: 53.02 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009761/5.494, allocations: 252.5 kB / 2.036 GB, free: 53.02 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/5.494, allocations: 21.28 kB / 2.036 GB, free: 53.02 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/5.496, allocations: 176.8 kB / 2.036 GB, free: 52.97 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/5.496, allocations: 55.38 kB / 2.036 GB, free: 52.97 MB / 0.6902 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.0003272/5.497, allocations: 139 kB / 2.036 GB, free: 52.86 MB / 0.6902 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005125/5.497, allocations: 210 kB / 2.036 GB, free: 52.75 MB / 0.6902 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/5.499, allocations: 0.8555 MB / 2.037 GB, free: 52.67 MB / 0.6902 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/5.499, allocations: 6.062 kB / 2.037 GB, free: 52.67 MB / 0.6902 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/5.499, allocations: 0 / 2.037 GB, free: 52.67 MB / 0.6902 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008931/5.5, allocations: 0.6716 MB / 2.038 GB, free: 52.5 MB / 0.6902 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005035/5.505, allocations: 2.428 MB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/5.505, allocations: 13.77 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006226/5.506, allocations: 143.8 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/5.506, allocations: 3.875 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/5.506, allocations: 9.844 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/5.506, allocations: 3.875 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/5.506, allocations: 4.266 kB / 2.04 GB, free: 52.14 MB / 0.6902 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001836/5.508, allocations: 1.292 MB / 2.042 GB, free: 51.77 MB / 0.6902 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002464/5.51, allocations: 2.144 MB / 2.044 GB, free: 51.02 MB / 0.6902 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/5.512, allocations: 440.8 kB / 2.044 GB, free: 50.81 MB / 0.6902 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/5.512, allocations: 0 / 2.044 GB, free: 50.81 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/5.513, allocations: 157.7 kB / 2.044 GB, free: 50.79 MB / 0.6902 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/5.513, allocations: 43.28 kB / 2.044 GB, free: 50.79 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.369e-05/5.514, allocations: 38.88 kB / 2.044 GB, free: 50.79 MB / 0.6902 GB Notification: Performance of sort global known variables: time 0.002061/5.516, allocations: 1.258 MB / 2.046 GB, free: 50.65 MB / 0.6902 GB Notification: Performance of remove unused functions: time 0.006385/5.522, allocations: 1.559 MB / 2.047 GB, free: 50.44 MB / 0.6902 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.002251/5.524, allocations: 1.198 MB / 2.048 GB, free: 50.18 MB / 0.6902 GB Notification: Performance of simCode: created initialization part: time 0.002171/5.526, allocations: 1.327 MB / 2.05 GB, free: 50.15 MB / 0.6902 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/5.526, allocations: 3.531 kB / 2.05 GB, free: 50.15 MB / 0.6902 GB Notification: Performance of simCode: created simulation system equations: time 0.000366/5.527, allocations: 311.5 kB / 2.05 GB, free: 50.15 MB / 0.6902 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007157/5.534, allocations: 1.223 MB / 2.051 GB, free: 50.12 MB / 0.6902 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/5.542, allocations: 2.872 MB / 2.054 GB, free: 49.33 MB / 0.6902 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/5.544, allocations: 1.837 MB / 2.056 GB, free: 48.59 MB / 0.6902 GB Notification: Performance of SimCode: time 1.092e-06/5.544, allocations: 0 / 2.056 GB, free: 48.59 MB / 0.6902 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)