Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_0_0_Buildings_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/Buildings 8.0.0/package.mo): time 2.719/2.719, allocations: 284.8 MB / 292.1 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00173/0.001729, allocations: 181.2 kB / 360.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001345/0.001344, allocations: 88.36 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3097/0.3111, allocations: 121.4 MB / 0.8502 GB, free: 3.926 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6329/0.944, allocations: 115.2 MB / 0.9628 GB, free: 78.51 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.988, allocations: 395.8 MB / 1.349 GB, free: 166.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/1.988, allocations: 92.75 kB / 1.349 GB, free: 166.8 MB / 0.8542 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.8729/2.861, allocations: 236.2 MB / 1.58 GB, free: 7.469 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/2.861, allocations: 11.94 kB / 1.58 GB, free: 7.457 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003816/2.862, allocations: 79.06 kB / 1.58 GB, free: 7.379 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/2.863, allocations: 0.5072 MB / 1.581 GB, free: 6.828 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/2.863, allocations: 16 kB / 1.581 GB, free: 6.812 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/2.864, allocations: 32 kB / 1.581 GB, free: 6.781 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001309/2.865, allocations: 353.9 kB / 1.581 GB, free: 6.438 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/2.866, allocations: 0.5099 MB / 1.581 GB, free: 5.859 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/2.866, allocations: 3.938 kB / 1.581 GB, free: 5.855 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.499e-05/2.866, allocations: 4 kB / 1.581 GB, free: 5.852 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/2.866, allocations: 12 kB / 1.581 GB, free: 5.84 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006075/2.873, allocations: 3.097 MB / 1.584 GB, free: 2.57 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008232/2.873, allocations: 270.7 kB / 1.585 GB, free: 2.297 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005013/2.874, allocations: 172.8 kB / 1.585 GB, free: 2.125 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004908/2.874, allocations: 356.4 kB / 1.585 GB, free: 1.703 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/2.874, allocations: 34.56 kB / 1.585 GB, free: 1.66 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=38): time 3.086e-06/2.875, allocations: 0 / 1.585 GB, free: 1.66 MB / 0.9167 GB Notification: Performance of matching and sorting (n=38): time 0.004288/2.879, allocations: 0.7085 MB / 1.586 GB, free: 0.9414 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/2.879, allocations: 59.44 kB / 1.586 GB, free: 0.8711 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/2.88, allocations: 430.4 kB / 1.586 GB, free: 456 kB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.000113/2.88, allocations: 33.64 kB / 1.586 GB, free: 416 kB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/2.88, allocations: 252.2 kB / 1.587 GB, free: 156 kB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/2.88, allocations: 130.1 kB / 1.587 GB, free: 24 kB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/2.881, allocations: 0 / 1.587 GB, free: 24 kB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002244/2.881, allocations: 366.8 kB / 1.587 GB, free: 15.66 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/2.881, allocations: 153.3 kB / 1.587 GB, free: 15.51 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006824/2.882, allocations: 319.1 kB / 1.588 GB, free: 15.12 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/2.885, allocations: 484.1 kB / 1.588 GB, free: 14.64 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/2.885, allocations: 4 kB / 1.588 GB, free: 14.64 MB / 0.9323 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.004504/2.89, allocations: 0.8272 MB / 1.589 GB, free: 13.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009523/2.891, allocations: 1.744 MB / 1.591 GB, free: 11.92 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.918e-05/2.891, allocations: 4.078 kB / 1.591 GB, free: 11.92 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007695/2.892, allocations: 112.6 kB / 1.591 GB, free: 11.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/2.893, allocations: 135.8 kB / 1.591 GB, free: 11.67 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/2.895, allocations: 0.7357 MB / 1.592 GB, free: 10.91 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/2.896, allocations: 95.38 kB / 1.592 GB, free: 10.82 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/2.897, allocations: 32.05 kB / 1.592 GB, free: 10.79 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/2.897, allocations: 4 kB / 1.592 GB, free: 10.78 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003974/2.901, allocations: 0.7115 MB / 1.592 GB, free: 10.07 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/2.901, allocations: 8 kB / 1.592 GB, free: 10.07 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/2.901, allocations: 8 kB / 1.592 GB, free: 10.06 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/2.902, allocations: 160.3 kB / 1.593 GB, free: 9.902 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/2.902, allocations: 11.94 kB / 1.593 GB, free: 9.891 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/2.903, allocations: 87.53 kB / 1.593 GB, free: 9.805 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/2.903, allocations: 27.98 kB / 1.593 GB, free: 9.777 MB / 0.9323 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.000246/2.904, allocations: 123.9 kB / 1.593 GB, free: 9.652 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/2.904, allocations: 59.25 kB / 1.593 GB, free: 9.594 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004645/2.909, allocations: 0.821 MB / 1.594 GB, free: 8.754 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/2.909, allocations: 4 kB / 1.594 GB, free: 8.75 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/2.909, allocations: 0 / 1.594 GB, free: 8.75 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/2.909, allocations: 7.906 kB / 1.594 GB, free: 8.742 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00681/2.916, allocations: 1.482 MB / 1.595 GB, free: 7.203 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/2.916, allocations: 0 / 1.595 GB, free: 7.203 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/2.917, allocations: 99.91 kB / 1.595 GB, free: 7.105 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007483/2.917, allocations: 120.7 kB / 1.595 GB, free: 6.984 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/2.918, allocations: 12 kB / 1.595 GB, free: 6.973 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/2.92, allocations: 0.7123 MB / 1.596 GB, free: 6.234 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/2.92, allocations: 3.984 kB / 1.596 GB, free: 6.23 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004175/2.924, allocations: 0.9086 MB / 1.597 GB, free: 5.273 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004399/2.928, allocations: 1.316 MB / 1.598 GB, free: 3.906 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005643/2.929, allocations: 188.2 kB / 1.598 GB, free: 3.703 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/2.929, allocations: 4 kB / 1.598 GB, free: 3.699 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009112/2.93, allocations: 63.78 kB / 1.598 GB, free: 3.637 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/2.93, allocations: 27.95 kB / 1.598 GB, free: 3.609 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/2.93, allocations: 16 kB / 1.598 GB, free: 3.594 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0006321/2.931, allocations: 322.9 kB / 1.599 GB, free: 3.281 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003892/2.935, allocations: 463.2 kB / 1.599 GB, free: 2.828 MB / 0.9323 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.001325/2.936, allocations: 417.3 kB / 1.6 GB, free: 2.422 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003407/2.939, allocations: 0.7269 MB / 1.6 GB, free: 1.695 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/2.939, allocations: 0 / 1.6 GB, free: 1.695 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/2.941, allocations: 249.4 kB / 1.601 GB, free: 1.453 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/2.944, allocations: 230.8 kB / 1.601 GB, free: 1.234 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003496/2.947, allocations: 0.7584 MB / 1.602 GB, free: 452 kB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/2.949, allocations: 0.9979 MB / 1.603 GB, free: 15.41 MB / 0.948 GB Notification: Performance of SimCode: time 7.704e-06/2.949, allocations: 0 / 1.603 GB, free: 15.41 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)