Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.199/2.199, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 187.6 kB / 490.8 MB, free: 1.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 221.4 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 88.67 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5594/0.5604, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.8129, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9201/1.733, allocations: 394.9 MB / 1.597 GB, free: 3.961 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/1.733, allocations: 97.11 kB / 1.597 GB, free: 3.906 MB / 1.01 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 1.192/2.925, allocations: 241 MB / 1.833 GB, free: 364 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.138e-05/2.925, allocations: 8.969 kB / 1.833 GB, free: 364 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005777/2.926, allocations: 85.09 kB / 1.833 GB, free: 364 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/2.927, allocations: 0.5202 MB / 1.833 GB, free: 363.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/2.927, allocations: 14.56 kB / 1.833 GB, free: 363.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/2.927, allocations: 29.44 kB / 1.833 GB, free: 363.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001125/2.929, allocations: 355.2 kB / 1.834 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/2.93, allocations: 0.501 MB / 1.834 GB, free: 363.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/2.93, allocations: 1 kB / 1.834 GB, free: 363.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/2.93, allocations: 2.281 kB / 1.834 GB, free: 363.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/2.93, allocations: 11.97 kB / 1.834 GB, free: 363.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/2.934, allocations: 3.125 MB / 1.837 GB, free: 360.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/2.935, allocations: 265.5 kB / 1.837 GB, free: 360.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/2.935, allocations: 177 kB / 1.838 GB, free: 360 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003455/2.936, allocations: 351.7 kB / 1.838 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/2.936, allocations: 44.33 kB / 1.838 GB, free: 359.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 3.126e-06/2.936, allocations: 0 / 1.838 GB, free: 359.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.002755/2.938, allocations: 0.7057 MB / 1.839 GB, free: 359.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/2.938, allocations: 55.75 kB / 1.839 GB, free: 359.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007169/2.939, allocations: 443.1 kB / 1.839 GB, free: 358.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.113e-05/2.939, allocations: 26.73 kB / 1.839 GB, free: 358.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/2.939, allocations: 262.7 kB / 1.839 GB, free: 358.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/2.939, allocations: 130.5 kB / 1.84 GB, free: 358.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/2.94, allocations: 3.938 kB / 1.84 GB, free: 358.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001326/2.94, allocations: 367.7 kB / 1.84 GB, free: 358.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/2.94, allocations: 152.1 kB / 1.84 GB, free: 358.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004106/2.94, allocations: 326.8 kB / 1.84 GB, free: 357.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/2.942, allocations: 472.1 kB / 1.841 GB, free: 357.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/2.942, allocations: 4.312 kB / 1.841 GB, free: 357.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002501/2.945, allocations: 0.836 MB / 1.842 GB, free: 357.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005255/2.945, allocations: 1.74 MB / 1.843 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/2.945, allocations: 4.188 kB / 1.843 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005593/2.946, allocations: 100.6 kB / 1.843 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/2.946, allocations: 147.9 kB / 1.844 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/2.948, allocations: 0.727 MB / 1.844 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/2.949, allocations: 93.75 kB / 1.844 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/2.949, allocations: 31.86 kB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/2.949, allocations: 3.469 kB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00214/2.951, allocations: 0.711 MB / 1.845 GB, free: 354.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/2.951, allocations: 5.406 kB / 1.845 GB, free: 354.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/2.951, allocations: 7.125 kB / 1.845 GB, free: 354.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006906/2.952, allocations: 158.2 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/2.952, allocations: 11.14 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008377/2.953, allocations: 84 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.512e-05/2.953, allocations: 31.27 kB / 1.845 GB, free: 354 MB / 1.151 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.0001901/2.953, allocations: 129.2 kB / 1.846 GB, free: 353.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/2.953, allocations: 66.72 kB / 1.846 GB, free: 353.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002826/2.956, allocations: 0.8118 MB / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/2.956, allocations: 7.953 kB / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/2.956, allocations: 5.125 kB / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/2.956, allocations: 0 / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/2.961, allocations: 1.495 MB / 1.848 GB, free: 352.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/2.961, allocations: 0.5938 kB / 1.848 GB, free: 352.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/2.962, allocations: 95.92 kB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/2.962, allocations: 122.1 kB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/2.962, allocations: 4.75 kB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/2.963, allocations: 0.7199 MB / 1.849 GB, free: 351.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/2.963, allocations: 5.281 kB / 1.849 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002653/2.966, allocations: 0.9068 MB / 1.85 GB, free: 351.1 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002788/2.969, allocations: 1.315 MB / 1.851 GB, free: 350.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005756/2.969, allocations: 188.2 kB / 1.851 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/2.97, allocations: 2.219 kB / 1.851 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/2.97, allocations: 59.47 kB / 1.851 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/2.97, allocations: 31.83 kB / 1.851 GB, free: 349.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.46e-05/2.97, allocations: 21.3 kB / 1.851 GB, free: 349.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006639/2.971, allocations: 333 kB / 1.852 GB, free: 349.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004405/2.976, allocations: 467.8 kB / 1.852 GB, free: 349.5 MB / 1.151 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.001619/2.977, allocations: 427.8 kB / 1.852 GB, free: 349.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002447/2.98, allocations: 0.7245 MB / 1.853 GB, free: 349 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/2.98, allocations: 1.031 kB / 1.853 GB, free: 349 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006985/2.98, allocations: 239.5 kB / 1.853 GB, free: 348.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/2.982, allocations: 222.2 kB / 1.854 GB, free: 348.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/2.985, allocations: 0.7661 MB / 1.854 GB, free: 348.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007392/2.986, allocations: 0.989 MB / 1.855 GB, free: 347.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.183e-06/2.986, allocations: 0 / 1.855 GB, free: 347.6 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)