Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",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/BuildingSystems 2.0.0-master/package.mo): time 0.7324/0.7324, allocations: 141.8 MB / 149.1 MB, free: 10.04 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 189.5 kB / 182 MB, free: 6.953 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.4 MB / 436 MB, free: 14.94 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009384/0.0009381, allocations: 93.33 kB / 0.507 GB, free: 8.172 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00186/0.00186, allocations: 268.8 kB / 0.5884 GB, free: 4.969 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4543/0.4562, allocations: 89.64 MB / 0.676 GB, free: 166.7 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.6356, allocations: 82.8 MB / 0.7568 GB, free: 113.8 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7054/1.341, allocations: 358 MB / 1.106 GB, free: 248 kB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/1.341, allocations: 97.67 kB / 1.107 GB, free: 200 kB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.606/2.948, allocations: 437 MB / 1.533 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/2.948, allocations: 7.031 kB / 1.533 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009097/2.949, allocations: 153.4 kB / 1.534 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/2.951, allocations: 0.8501 MB / 1.534 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.726e-05/2.951, allocations: 18.44 kB / 1.534 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006621/2.952, allocations: 81.59 kB / 1.534 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001083/2.953, allocations: 395.6 kB / 1.535 GB, free: 150.2 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009318/2.954, allocations: 0.5197 MB / 1.535 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/2.954, allocations: 0 / 1.535 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/2.954, allocations: 5.812 kB / 1.535 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/2.954, allocations: 17.34 kB / 1.535 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007042/2.961, allocations: 2.941 MB / 1.538 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007767/2.962, allocations: 310.5 kB / 1.539 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/2.962, allocations: 136.9 kB / 1.539 GB, free: 147.3 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004/2.963, allocations: 346.9 kB / 1.539 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/2.963, allocations: 36.28 kB / 1.539 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=33): time 2.615e-06/2.963, allocations: 0 / 1.539 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33): time 0.002056/2.965, allocations: 499.8 kB / 1.54 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/2.965, allocations: 55.12 kB / 1.54 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/2.966, allocations: 0.6419 MB / 1.54 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0003138/2.967, allocations: 33.33 kB / 1.54 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005278/2.967, allocations: 406.8 kB / 1.541 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/2.967, allocations: 112.3 kB / 1.541 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/2.967, allocations: 0 / 1.541 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.515e-05/2.967, allocations: 331.4 kB / 1.541 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/2.968, allocations: 153.1 kB / 1.541 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/2.97, allocations: 1.42 MB / 1.543 GB, free: 144 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/2.971, allocations: 393.9 kB / 1.543 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/2.971, allocations: 3.938 kB / 1.543 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002534/2.973, allocations: 0.6641 MB / 1.544 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003474/2.974, allocations: 0.8099 MB / 1.544 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/2.974, allocations: 2.406 kB / 1.544 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.14e-05/2.974, allocations: 5.531 kB / 1.544 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/2.975, allocations: 213 kB / 1.545 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/2.977, allocations: 2.999 MB / 1.548 GB, free: 139.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003844/2.981, allocations: 0.7626 MB / 1.548 GB, free: 138.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/2.981, allocations: 27.98 kB / 1.548 GB, free: 138.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/2.981, allocations: 4 kB / 1.548 GB, free: 138.7 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001288/2.982, allocations: 0.4924 MB / 1.549 GB, free: 138.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/2.982, allocations: 6.531 kB / 1.549 GB, free: 138.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/2.982, allocations: 4 kB / 1.549 GB, free: 138.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006861/2.983, allocations: 161.6 kB / 1.549 GB, free: 138 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/2.983, allocations: 7.656 kB / 1.549 GB, free: 138 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003452/2.986, allocations: 0.7654 MB / 1.55 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.946e-05/2.987, allocations: 24 kB / 1.55 GB, free: 137.3 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004914/2.987, allocations: 131.7 kB / 1.55 GB, free: 137.2 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002971/2.987, allocations: 90.78 kB / 1.55 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/2.989, allocations: 0.573 MB / 1.55 GB, free: 136.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/2.989, allocations: 4 kB / 1.55 GB, free: 136.5 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/2.989, allocations: 0 / 1.55 GB, free: 136.5 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/2.989, allocations: 10.61 kB / 1.551 GB, free: 136.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/2.992, allocations: 1.223 MB / 1.552 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/2.992, allocations: 4 kB / 1.552 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/2.992, allocations: 122.9 kB / 1.552 GB, free: 135.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/2.992, allocations: 4 kB / 1.552 GB, free: 135.2 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/2.993, allocations: 7.984 kB / 1.552 GB, free: 135.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/2.994, allocations: 2.96 MB / 1.555 GB, free: 132.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/2.994, allocations: 6.719 kB / 1.555 GB, free: 132.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0012/2.995, allocations: 0.6691 MB / 1.555 GB, free: 131.4 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001295/2.996, allocations: 1.078 MB / 1.556 GB, free: 130.2 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004359/2.996, allocations: 219.7 kB / 1.557 GB, free: 130 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/2.997, allocations: 4 kB / 1.557 GB, free: 130 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007101/2.997, allocations: 70.58 kB / 1.557 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/2.998, allocations: 26.53 kB / 1.557 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/2.998, allocations: 15.98 kB / 1.557 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007219/2.998, allocations: 484.6 kB / 1.557 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.004616/3.003, allocations: 0.7014 MB / 1.558 GB, free: 128.7 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001612/3.005, allocations: 0.5092 MB / 1.558 GB, free: 128.3 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.003233/3.008, allocations: 0.777 MB / 1.559 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/3.008, allocations: 0 / 1.559 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005507/3.008, allocations: 226.9 kB / 1.559 GB, free: 127.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/3.011, allocations: 376.2 kB / 1.56 GB, free: 127 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/3.014, allocations: 1.08 MB / 1.561 GB, free: 125.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007973/3.014, allocations: 1.129 MB / 1.562 GB, free: 124.7 MB / 0.6982 GB Notification: Performance of SimCode: time 8.72e-07/3.014, allocations: 0 / 1.562 GB, free: 124.7 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)