Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json 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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 96.66 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 176.2 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.2 MB / 240.5 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6461/0.6461, allocations: 113.7 MB / 405.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003187, allocations: 12 kB / 493 MB, free: 8.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1956, allocations: 77.12 MB / 0.5567 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03636/0.2321, allocations: 25.02 MB / 0.5812 GB, free: 2.613 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.352/0.5841, allocations: 7.022 MB / 0.588 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.5864, allocations: 24.34 kB / 0.588 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.5887, allocations: 379.8 kB / 0.5884 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007168/0.5959, allocations: 1.443 MB / 0.5898 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004649/0.6005, allocations: 1.19 MB / 0.591 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005472/0.606, allocations: 2.104 MB / 0.593 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00476/0.6108, allocations: 1.106 MB / 0.5941 GB, free: 11.44 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007781/0.6186, allocations: 1.285 MB / 0.5954 GB, free: 11.44 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006056/0.6248, allocations: 1.298 MB / 0.5966 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002351/0.6272, allocations: 64.44 kB / 0.5967 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007063/0.6343, allocations: 0.8997 MB / 0.5976 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002645/0.637, allocations: 327.3 kB / 0.5979 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002889/0.64, allocations: 256.2 kB / 0.5981 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008365/0.6484, allocations: 1.539 MB / 0.5996 GB, free: 11.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.6485, allocations: 2.812 kB / 0.5996 GB, free: 11.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.27e-06/0.6485, allocations: 1.531 kB / 0.5996 GB, free: 11.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001464/0.6487, allocations: 0 / 0.5996 GB, free: 11.26 MB / 446.1 MB 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 0.006284/0.655, allocations: 1.344 MB / 0.6009 GB, free: 26.46 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.601e-05/0.6551, allocations: 13.16 kB / 0.601 GB, free: 26.45 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005476/0.6557, allocations: 102.4 kB / 0.6011 GB, free: 26.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002088/0.6578, allocations: 150.3 kB / 0.6012 GB, free: 26.35 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00551/0.6633, allocations: 0.8539 MB / 0.602 GB, free: 26.01 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/0.6637, allocations: 81.31 kB / 0.6021 GB, free: 26.01 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/0.6648, allocations: 116.7 kB / 0.6022 GB, free: 26.01 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.667, allocations: 0.6346 MB / 0.6028 GB, free: 25.89 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.6671, allocations: 0.9062 kB / 0.6028 GB, free: 25.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.6672, allocations: 24.69 kB / 0.6029 GB, free: 25.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.989e-05/0.6672, allocations: 18.72 kB / 0.6029 GB, free: 25.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.6692, allocations: 476.2 kB / 0.6033 GB, free: 25.88 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009536/0.6788, allocations: 2.877 MB / 0.6062 GB, free: 24.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009419/0.6797, allocations: 328 kB / 0.6065 GB, free: 24.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004763/0.6803, allocations: 340.6 kB / 0.6068 GB, free: 24.13 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.6804, allocations: 38.09 kB / 0.6068 GB, free: 24.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=33): time 5.52e-06/0.6804, allocations: 0 / 0.6068 GB, free: 24.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.003352/0.6837, allocations: 0.5441 MB / 0.6074 GB, free: 23.99 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/0.6838, allocations: 55.66 kB / 0.6074 GB, free: 23.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/0.6872, allocations: 0.8985 MB / 0.6083 GB, free: 23.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009131/0.6882, allocations: 60.23 kB / 0.6083 GB, free: 23.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.6897, allocations: 0.5372 MB / 0.6089 GB, free: 23.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.69, allocations: 108.9 kB / 0.609 GB, free: 23.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.6901, allocations: 12.28 kB / 0.609 GB, free: 23.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000248/0.6904, allocations: 333.4 kB / 0.6093 GB, free: 23.04 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008055/0.6912, allocations: 174.9 kB / 0.6095 GB, free: 23.01 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/0.6935, allocations: 1.137 MB / 0.6106 GB, free: 21.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.6942, allocations: 308.1 kB / 0.6109 GB, free: 21.86 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.6943, allocations: 6.453 kB / 0.6109 GB, free: 21.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002742/0.697, allocations: 0.6422 MB / 0.6115 GB, free: 21.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006231/0.6977, allocations: 0.8001 MB / 0.6123 GB, free: 20.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.6977, allocations: 6.828 kB / 0.6123 GB, free: 20.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.987e-05/0.6978, allocations: 4.406 kB / 0.6123 GB, free: 20.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/0.7, allocations: 238 kB / 0.6125 GB, free: 20.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.7025, allocations: 2.956 MB / 0.6154 GB, free: 17.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006537/0.709, allocations: 0.7572 MB / 0.6162 GB, free: 17.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004082/0.7095, allocations: 29.58 kB / 0.6162 GB, free: 17.53 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.7096, allocations: 3.906 kB / 0.6162 GB, free: 17.53 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001987/0.7116, allocations: 0.4989 MB / 0.6167 GB, free: 17.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.7116, allocations: 2.781 kB / 0.6167 GB, free: 17.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.7116, allocations: 5.062 kB / 0.6167 GB, free: 17.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.7128, allocations: 162.9 kB / 0.6168 GB, free: 17.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.085e-05/0.7129, allocations: 4.562 kB / 0.6168 GB, free: 17.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006294/0.7192, allocations: 0.7382 MB / 0.6176 GB, free: 17.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/0.7194, allocations: 24.47 kB / 0.6176 GB, free: 17.11 MB / 462.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * 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.001435/0.7209, allocations: 328.6 kB / 0.6179 GB, free: 16.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/0.7214, allocations: 101.9 kB / 0.618 GB, free: 16.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.7232, allocations: 0.5228 MB / 0.6185 GB, free: 16.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.7233, allocations: 4.312 kB / 0.6185 GB, free: 16.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.7233, allocations: 1.375 kB / 0.6185 GB, free: 16.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.7233, allocations: 6.719 kB / 0.6185 GB, free: 16.69 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/0.7263, allocations: 1.274 MB / 0.6198 GB, free: 16.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.7264, allocations: 2 kB / 0.6198 GB, free: 16.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009705/0.7274, allocations: 122.6 kB / 0.6199 GB, free: 16.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/0.7274, allocations: 1.75 kB / 0.6199 GB, free: 16.05 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.7275, allocations: 9.781 kB / 0.6199 GB, free: 16.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.7298, allocations: 2.945 MB / 0.6228 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.7298, allocations: 5.562 kB / 0.6228 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.7314, allocations: 0.6214 MB / 0.6234 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.7321, allocations: 228.1 kB / 0.6236 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.7323, allocations: 14.05 kB / 0.6236 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005752/0.7328, allocations: 61.78 kB / 0.6237 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.733, allocations: 29.89 kB / 0.6237 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.733, allocations: 10.25 kB / 0.6237 GB, free: 12.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.7344, allocations: 0.5989 MB / 0.6243 GB, free: 12.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7344, allocations: 1.094 kB / 0.6243 GB, free: 12.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004094/0.7385, allocations: 0.5374 MB / 0.6248 GB, free: 12.25 MB / 462.1 MB 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 () * Number of clocked 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.003255/0.7418, allocations: 1.668 MB / 0.6264 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004458/0.7463, allocations: 0.8354 MB / 0.6273 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.7464, allocations: 384 / 0.6273 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.7474, allocations: 247.2 kB / 0.6275 GB, free: 10.53 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/0.7521, allocations: 482.9 kB / 0.628 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007099/0.7592, allocations: 3.543 MB / 0.6314 GB, free: 7.414 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.76, allocations: 1.054 MB / 0.6324 GB, free: 6.539 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002046/0.762, allocations: 206.5 kB / 0.6326 GB, free: 6.441 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006239/0.7627, allocations: 365.8 kB / 0.633 GB, free: 6.145 MB / 462.1 MB Notification: Performance of SimCode: time 1.984e-06/0.7627, allocations: 0 / 0.633 GB, free: 6.145 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09756/0.8602, allocations: 31.69 MB / 0.6639 GB, free: 9.023 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/0.8606, allocations: 247.6 kB / 0.6642 GB, free: 8.691 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.162/4.022, allocations: 0 / 0.6642 GB, free: 8.691 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: