Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="IDEAS_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.003055/0.003055, allocations: 180.7 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6963/0.6963, allocations: 133.5 MB / 141.4 MB, free: 15.78 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.546/1.546, allocations: 221.3 MB / 395 MB, free: 10.21 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.001098/0.001097, allocations: 101.8 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4744/0.4755, allocations: 88.43 MB / 0.5529 GB, free: 88.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.671, allocations: 82.31 MB / 0.6333 GB, free: 14.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.149/1.82, allocations: 356.2 MB / 0.9811 GB, free: 265.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/1.821, allocations: 89.56 kB / 0.9812 GB, free: 265.4 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.4666/2.287, allocations: 241 MB / 1.217 GB, free: 34.91 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/2.287, allocations: 11.94 kB / 1.217 GB, free: 34.89 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/2.288, allocations: 82.97 kB / 1.217 GB, free: 34.81 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008384/2.288, allocations: 0.519 MB / 1.217 GB, free: 34.25 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/2.288, allocations: 16 kB / 1.217 GB, free: 34.23 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/2.289, allocations: 28 kB / 1.217 GB, free: 34.21 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006094/2.289, allocations: 349.9 kB / 1.218 GB, free: 33.86 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/2.29, allocations: 0.5176 MB / 1.218 GB, free: 33.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/2.29, allocations: 3.938 kB / 1.218 GB, free: 33.28 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.546e-05/2.29, allocations: 0 / 1.218 GB, free: 33.28 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/2.29, allocations: 12 kB / 1.218 GB, free: 33.27 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003034/2.293, allocations: 3.103 MB / 1.221 GB, free: 29.99 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/2.293, allocations: 274.6 kB / 1.221 GB, free: 29.71 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/2.294, allocations: 185.2 kB / 1.222 GB, free: 29.53 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003641/2.294, allocations: 348.4 kB / 1.222 GB, free: 29.12 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/2.294, allocations: 46.31 kB / 1.222 GB, free: 29.06 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=38): time 2.304e-06/2.294, allocations: 3.938 kB / 1.222 GB, free: 29.06 MB / 0.6823 GB Notification: Performance of matching and sorting (n=38): time 0.002267/2.296, allocations: 0.7002 MB / 1.223 GB, free: 28.35 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/2.296, allocations: 59.41 kB / 1.223 GB, free: 28.28 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004897/2.297, allocations: 455.3 kB / 1.223 GB, free: 27.82 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/2.297, allocations: 25.7 kB / 1.223 GB, free: 27.79 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/2.297, allocations: 256.2 kB / 1.223 GB, free: 27.54 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.174e-05/2.297, allocations: 126.1 kB / 1.223 GB, free: 27.41 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/2.297, allocations: 0 / 1.223 GB, free: 27.41 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001083/2.297, allocations: 366.8 kB / 1.224 GB, free: 27.05 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/2.298, allocations: 153.3 kB / 1.224 GB, free: 26.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/2.298, allocations: 319.1 kB / 1.224 GB, free: 26.51 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/2.299, allocations: 476.1 kB / 1.225 GB, free: 26.04 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/2.299, allocations: 0 / 1.225 GB, free: 26.04 MB / 0.6823 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002024/2.301, allocations: 0.8311 MB / 1.226 GB, free: 25.2 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000442/2.302, allocations: 1.74 MB / 1.227 GB, free: 23.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/2.302, allocations: 4 kB / 1.227 GB, free: 23.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004265/2.302, allocations: 112.8 kB / 1.227 GB, free: 23.21 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005737/2.303, allocations: 143.8 kB / 1.227 GB, free: 23.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/2.304, allocations: 0.7317 MB / 1.228 GB, free: 22.31 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008163/2.305, allocations: 87.53 kB / 1.228 GB, free: 22.22 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.616e-05/2.305, allocations: 35.98 kB / 1.228 GB, free: 22.19 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/2.305, allocations: 4 kB / 1.228 GB, free: 22.18 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001953/2.307, allocations: 0.7115 MB / 1.229 GB, free: 21.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/2.307, allocations: 11.98 kB / 1.229 GB, free: 21.46 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/2.307, allocations: 8 kB / 1.229 GB, free: 21.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/2.307, allocations: 156.3 kB / 1.229 GB, free: 21.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/2.308, allocations: 11.94 kB / 1.229 GB, free: 21.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000751/2.308, allocations: 87.56 kB / 1.229 GB, free: 21.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-05/2.308, allocations: 27.98 kB / 1.229 GB, free: 21.18 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.000198/2.309, allocations: 120.8 kB / 1.229 GB, free: 21.05 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/2.309, allocations: 59.25 kB / 1.229 GB, free: 20.99 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002415/2.311, allocations: 0.8138 MB / 1.23 GB, free: 20.16 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/2.311, allocations: 4 kB / 1.23 GB, free: 20.15 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/2.311, allocations: 4 kB / 1.23 GB, free: 20.15 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/2.311, allocations: 4.047 kB / 1.23 GB, free: 20.14 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/2.315, allocations: 1.481 MB / 1.232 GB, free: 18.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/2.315, allocations: 4 kB / 1.232 GB, free: 18.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000385/2.315, allocations: 91.97 kB / 1.232 GB, free: 18.51 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/2.315, allocations: 124.8 kB / 1.232 GB, free: 18.39 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/2.315, allocations: 11.98 kB / 1.232 GB, free: 18.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008819/2.316, allocations: 0.7162 MB / 1.233 GB, free: 17.63 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/2.316, allocations: 0 / 1.233 GB, free: 17.63 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002021/2.318, allocations: 0.9201 MB / 1.234 GB, free: 16.66 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002165/2.32, allocations: 1.311 MB / 1.235 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/2.321, allocations: 188.2 kB / 1.235 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.285e-05/2.321, allocations: 3.906 kB / 1.235 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/2.321, allocations: 59.94 kB / 1.235 GB, free: 15.03 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/2.322, allocations: 31.91 kB / 1.235 GB, free: 15 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/2.322, allocations: 16 kB / 1.235 GB, free: 14.98 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0004858/2.322, allocations: 339.2 kB / 1.235 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003119/2.325, allocations: 463.2 kB / 1.236 GB, free: 14.21 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.001315/2.327, allocations: 420.7 kB / 1.236 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002018/2.329, allocations: 0.7234 MB / 1.237 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/2.329, allocations: 0 / 1.237 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000534/2.329, allocations: 241.1 kB / 1.237 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/2.331, allocations: 234.5 kB / 1.237 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/2.333, allocations: 0.7625 MB / 1.238 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006216/2.334, allocations: 0.9901 MB / 1.239 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of SimCode: time 3.828e-06/2.334, allocations: 0 / 1.239 GB, free: 10.8 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)