Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",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.003591/0.003591, allocations: 181.4 kB / 7.459 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6587/0.6587, allocations: 133.5 MB / 141.4 MB, free: 15.79 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.418/1.418, allocations: 221.3 MB / 395 MB, free: 10.24 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.001005/0.001005, allocations: 94.58 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4094/0.4104, allocations: 88.44 MB / 0.5529 GB, free: 88.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.5391, allocations: 82.3 MB / 0.6333 GB, free: 13.99 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.56, allocations: 356.2 MB / 0.9811 GB, free: 204.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/1.56, allocations: 94.97 kB / 0.9812 GB, free: 204.7 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.4445/2.005, allocations: 241 MB / 1.217 GB, free: 19.36 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/2.005, allocations: 12 kB / 1.217 GB, free: 19.35 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/2.005, allocations: 86.97 kB / 1.217 GB, free: 19.26 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008077/2.006, allocations: 0.5138 MB / 1.217 GB, free: 18.72 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/2.006, allocations: 12 kB / 1.217 GB, free: 18.71 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/2.006, allocations: 32 kB / 1.217 GB, free: 18.68 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005671/2.006, allocations: 361.9 kB / 1.218 GB, free: 18.32 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006116/2.007, allocations: 0.5021 MB / 1.218 GB, free: 17.76 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/2.007, allocations: 11.94 kB / 1.218 GB, free: 17.75 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/2.007, allocations: 0 / 1.218 GB, free: 17.75 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/2.007, allocations: 12 kB / 1.218 GB, free: 17.73 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/2.01, allocations: 3.102 MB / 1.221 GB, free: 14.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/2.01, allocations: 278.6 kB / 1.221 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/2.01, allocations: 193.1 kB / 1.222 GB, free: 14 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002423/2.01, allocations: 347.6 kB / 1.222 GB, free: 13.59 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/2.01, allocations: 38.31 kB / 1.222 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=38): time 1.823e-06/2.01, allocations: 4 kB / 1.222 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=38): time 0.002094/2.013, allocations: 0.7041 MB / 1.223 GB, free: 12.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.835e-05/2.013, allocations: 59.31 kB / 1.223 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/2.013, allocations: 447.4 kB / 1.223 GB, free: 12.31 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/2.013, allocations: 29.7 kB / 1.223 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.794e-05/2.013, allocations: 256.2 kB / 1.223 GB, free: 12.02 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.422e-05/2.013, allocations: 122.1 kB / 1.223 GB, free: 11.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/2.013, allocations: 0 / 1.223 GB, free: 11.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.864e-05/2.013, allocations: 374.8 kB / 1.224 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/2.014, allocations: 145.3 kB / 1.224 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/2.014, allocations: 334.2 kB / 1.224 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/2.015, allocations: 472.2 kB / 1.225 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/2.015, allocations: 0 / 1.225 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001994/2.017, allocations: 0.8228 MB / 1.226 GB, free: 9.691 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.00028/2.018, allocations: 1.748 MB / 1.227 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.018, allocations: 4 kB / 1.227 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004108/2.018, allocations: 104.8 kB / 1.227 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005518/2.019, allocations: 139.8 kB / 1.227 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009039/2.02, allocations: 0.7356 MB / 1.228 GB, free: 6.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007244/2.02, allocations: 91.53 kB / 1.228 GB, free: 6.707 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/2.02, allocations: 32.11 kB / 1.228 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/2.02, allocations: 6.812 kB / 1.228 GB, free: 6.672 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001782/2.022, allocations: 0.7156 MB / 1.229 GB, free: 5.957 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/2.022, allocations: 4 kB / 1.229 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.396e-06/2.022, allocations: 8 kB / 1.229 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006014/2.023, allocations: 168.1 kB / 1.229 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/2.023, allocations: 8 kB / 1.229 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006099/2.023, allocations: 79.56 kB / 1.229 GB, free: 5.695 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/2.023, allocations: 31.98 kB / 1.229 GB, free: 5.664 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001308/2.024, allocations: 120.8 kB / 1.229 GB, free: 5.539 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/2.024, allocations: 59.25 kB / 1.229 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002184/2.026, allocations: 0.8293 MB / 1.23 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/2.026, allocations: 4 kB / 1.23 GB, free: 4.625 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/2.026, allocations: 3.938 kB / 1.23 GB, free: 4.621 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/2.026, allocations: 3.984 kB / 1.23 GB, free: 4.617 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/2.029, allocations: 1.476 MB / 1.232 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/2.029, allocations: 0 / 1.232 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/2.029, allocations: 95.97 kB / 1.232 GB, free: 3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000328/2.03, allocations: 116.8 kB / 1.232 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/2.03, allocations: 11.98 kB / 1.232 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000832/2.031, allocations: 0.7123 MB / 1.233 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/2.031, allocations: 0 / 1.233 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001926/2.032, allocations: 0.9163 MB / 1.234 GB, free: 1.164 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2744/2.307, allocations: 1.312 MB / 1.235 GB, free: 243.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005762/2.308, allocations: 188.5 kB / 1.235 GB, free: 243.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/2.308, allocations: 5.609 kB / 1.235 GB, free: 243.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007216/2.308, allocations: 56.98 kB / 1.235 GB, free: 243.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.846e-05/2.309, allocations: 37.7 kB / 1.235 GB, free: 243.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.713e-05/2.309, allocations: 19 kB / 1.235 GB, free: 243.4 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0005151/2.309, allocations: 336 kB / 1.235 GB, free: 243.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003123/2.312, allocations: 464.5 kB / 1.236 GB, free: 243.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001079/2.313, allocations: 413.3 kB / 1.236 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001757/2.315, allocations: 0.7237 MB / 1.237 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/2.315, allocations: 2.719 kB / 1.237 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005418/2.316, allocations: 243.5 kB / 1.237 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/2.317, allocations: 228.5 kB / 1.237 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/2.319, allocations: 0.7598 MB / 1.238 GB, free: 243 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005681/2.319, allocations: 0.9922 MB / 1.239 GB, free: 242.2 MB / 0.6823 GB Notification: Performance of SimCode: time 3.3e-07/2.319, allocations: 0 / 1.239 GB, free: 242.2 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)