Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.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.Validation.TwoWayValveParameterization,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization",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.7204/0.7204, allocations: 141.8 MB / 149.1 MB, free: 13.52 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.001111/0.00111, allocations: 180.5 kB / 181.9 MB, free: 10.17 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.391/1.391, allocations: 221.3 MB / 436 MB, free: 2.66 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009274/0.0009274, allocations: 97.98 kB / 0.507 GB, free: 17.85 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 276.6 kB / 0.5884 GB, free: 4.172 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4759/0.4778, allocations: 89.65 MB / 0.676 GB, free: 136.8 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.6723, allocations: 82.77 MB / 0.7568 GB, free: 83.77 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7306/1.403, allocations: 355.4 MB / 1.104 GB, free: 4.305 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/1.403, allocations: 93.44 kB / 1.104 GB, free: 4.258 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 1.468/2.872, allocations: 418.1 MB / 1.512 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/2.872, allocations: 7.938 kB / 1.512 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002619/2.872, allocations: 96.25 kB / 1.512 GB, free: 153.4 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/2.873, allocations: 0.5818 MB / 1.513 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/2.873, allocations: 14.81 kB / 1.513 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.236e-05/2.873, allocations: 34.09 kB / 1.513 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005509/2.874, allocations: 247 kB / 1.513 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/2.874, allocations: 310.9 kB / 1.514 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/2.874, allocations: 3.812 kB / 1.514 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/2.874, allocations: 0 / 1.514 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/2.874, allocations: 10.94 kB / 1.514 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/2.877, allocations: 1.761 MB / 1.515 GB, free: 152.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/2.877, allocations: 151.3 kB / 1.515 GB, free: 152.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/2.877, allocations: 69.67 kB / 1.515 GB, free: 152.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/2.877, allocations: 346.5 kB / 1.516 GB, free: 151.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/2.877, allocations: 33.88 kB / 1.516 GB, free: 151.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/2.877, allocations: 0 / 1.516 GB, free: 151.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=19): time 0.0005998/2.878, allocations: 220.2 kB / 1.516 GB, free: 151.7 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/2.878, allocations: 52.92 kB / 1.516 GB, free: 151.6 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006416/2.879, allocations: 499.3 kB / 1.517 GB, free: 151.5 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/2.879, allocations: 30.55 kB / 1.517 GB, free: 151.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/2.879, allocations: 276.9 kB / 1.517 GB, free: 151.3 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/2.879, allocations: 63.72 kB / 1.517 GB, free: 151.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/2.879, allocations: 0 / 1.517 GB, free: 151.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001524/2.879, allocations: 367.1 kB / 1.517 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/2.879, allocations: 83.64 kB / 1.517 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/2.88, allocations: 191.9 kB / 1.518 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/2.88, allocations: 124.5 kB / 1.518 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/2.88, allocations: 0.5 kB / 1.518 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008801/2.881, allocations: 330 kB / 1.518 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-05/2.881, allocations: 274.9 kB / 1.518 GB, free: 150.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/2.881, allocations: 0.7188 kB / 1.518 GB, free: 150.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/2.881, allocations: 3.75 kB / 1.518 GB, free: 150.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/2.882, allocations: 146.7 kB / 1.518 GB, free: 150.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/2.884, allocations: 2.395 MB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007407/2.884, allocations: 77.31 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.988e-05/2.884, allocations: 18.61 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/2.884, allocations: 3.906 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000473/2.885, allocations: 234.6 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-06/2.885, allocations: 3.969 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.721e-06/2.885, allocations: 2.312 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/2.885, allocations: 105.6 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/2.885, allocations: 6.312 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006167/2.886, allocations: 67.7 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/2.886, allocations: 22.06 kB / 1.521 GB, free: 148.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001102/2.886, allocations: 112.4 kB / 1.521 GB, free: 148 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/2.886, allocations: 62.75 kB / 1.521 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/2.887, allocations: 276.8 kB / 1.522 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/2.887, allocations: 2.719 kB / 1.522 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/2.887, allocations: 3.844 kB / 1.522 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/2.887, allocations: 0 / 1.522 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/2.888, allocations: 0.7883 MB / 1.522 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/2.888, allocations: 0.9688 kB / 1.522 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/2.889, allocations: 76.02 kB / 1.523 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/2.889, allocations: 3.969 kB / 1.523 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/2.889, allocations: 10.34 kB / 1.523 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007178/2.889, allocations: 2.364 MB / 1.525 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.889, allocations: 5.25 kB / 1.525 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000436/2.89, allocations: 406.6 kB / 1.525 GB, free: 145 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006023/2.89, allocations: 0.8086 MB / 1.526 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/2.891, allocations: 170.5 kB / 1.526 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.845e-05/2.891, allocations: 1.094 kB / 1.526 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/2.891, allocations: 55.7 kB / 1.526 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/2.891, allocations: 17.97 kB / 1.526 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/2.891, allocations: 6.5 kB / 1.526 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.000415/2.892, allocations: 372.6 kB / 1.527 GB, free: 144.1 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00262/2.894, allocations: 495.5 kB / 1.527 GB, free: 144.1 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 (21): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008726/2.895, allocations: 476.2 kB / 1.528 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001547/2.897, allocations: 442.8 kB / 1.528 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/2.897, allocations: 1.469 kB / 1.528 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003628/2.897, allocations: 126.5 kB / 1.528 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/2.899, allocations: 287 kB / 1.528 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/2.901, allocations: 0.7529 MB / 1.529 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/2.901, allocations: 0.9989 MB / 1.53 GB, free: 142.9 MB / 0.6982 GB Notification: Performance of SimCode: time 3.61e-07/2.901, allocations: 0 / 1.53 GB, free: 142.9 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe 2>&1)