Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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/IBPSA 4.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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 179 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.629/0.629, allocations: 90.81 MB / 104.5 MB, free: 9.793 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.3 MB / 348.3 MB, free: 436 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009211/0.0009212, allocations: 101.2 kB / 421.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.019e-05/5.023e-05, allocations: 4 kB / 0.4897 GB, free: 5.246 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4412, allocations: 72.31 MB / 0.5603 GB, free: 40.43 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8059/1.247, allocations: 353.1 MB / 0.9051 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/1.247, allocations: 86.39 kB / 0.9052 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.444/2.692, allocations: 307.4 MB / 1.205 GB, free: 143.2 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.733e-06/2.692, allocations: 0 / 1.205 GB, free: 143.2 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.471e-05/2.692, allocations: 26.64 kB / 1.205 GB, free: 143.2 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002266/2.694, allocations: 1.252 MB / 1.207 GB, free: 142.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/2.694, allocations: 11.2 kB / 1.207 GB, free: 142.7 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/2.694, allocations: 97.59 kB / 1.207 GB, free: 142.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/2.694, allocations: 117.2 kB / 1.207 GB, free: 142.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/2.696, allocations: 0.6682 MB / 1.208 GB, free: 142.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.211e-05/2.696, allocations: 55.59 kB / 1.208 GB, free: 142.3 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/2.696, allocations: 69.45 kB / 1.208 GB, free: 142.3 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000982/2.697, allocations: 0.6549 MB / 1.208 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/2.697, allocations: 1.125 kB / 1.208 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/2.697, allocations: 23.97 kB / 1.208 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/2.697, allocations: 15 kB / 1.208 GB, free: 142.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006355/2.698, allocations: 431.2 kB / 1.209 GB, free: 142.2 MB / 0.6042 GB Warning: The model contains alias variables with conflicting start and/or 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.003339/2.701, allocations: 2.609 MB / 1.211 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005113/2.701, allocations: 341.8 kB / 1.212 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/2.702, allocations: 190.9 kB / 1.212 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/2.702, allocations: 348.5 kB / 1.212 GB, free: 140.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/2.702, allocations: 328.3 kB / 1.212 GB, free: 140.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 2.484e-06/2.702, allocations: 6.812 kB / 1.212 GB, free: 140.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.0009411/2.703, allocations: 0.5667 MB / 1.213 GB, free: 140.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/2.703, allocations: 243.1 kB / 1.213 GB, free: 140 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/2.704, allocations: 0.7248 MB / 1.214 GB, free: 139.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/2.704, allocations: 40.58 kB / 1.214 GB, free: 139.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/2.704, allocations: 437 kB / 1.214 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.266e-05/2.705, allocations: 121.9 kB / 1.215 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/2.705, allocations: 11.09 kB / 1.215 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.666e-05/2.705, allocations: 330 kB / 1.215 GB, free: 139.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/2.705, allocations: 199.6 kB / 1.215 GB, free: 139.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/2.705, allocations: 399 kB / 1.215 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/2.706, allocations: 263.2 kB / 1.216 GB, free: 139 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/2.706, allocations: 2.312 kB / 1.216 GB, free: 139 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009728/2.707, allocations: 0.7412 MB / 1.216 GB, free: 138.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002199/2.707, allocations: 1.084 MB / 1.217 GB, free: 137.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/2.707, allocations: 7.234 kB / 1.217 GB, free: 137.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/2.707, allocations: 3.781 kB / 1.217 GB, free: 137.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009013/2.708, allocations: 150.9 kB / 1.218 GB, free: 137.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007202/2.709, allocations: 1.784 MB / 1.219 GB, free: 136 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008158/2.709, allocations: 123 kB / 1.219 GB, free: 136 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/2.709, allocations: 36.86 kB / 1.219 GB, free: 136 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/2.709, allocations: 3.75 kB / 1.219 GB, free: 136 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009078/2.71, allocations: 0.6531 MB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/2.71, allocations: 3.469 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/2.71, allocations: 6.625 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/2.711, allocations: 136.1 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/2.711, allocations: 9.438 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006699/2.712, allocations: 123.4 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/2.712, allocations: 36.92 kB / 1.22 GB, free: 135.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001787/2.712, allocations: 176.9 kB / 1.221 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/2.712, allocations: 95.84 kB / 1.221 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/2.713, allocations: 0.7026 MB / 1.221 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/2.713, allocations: 10.66 kB / 1.221 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/2.713, allocations: 0 / 1.221 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/2.713, allocations: 3.891 kB / 1.221 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/2.715, allocations: 1.567 MB / 1.223 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/2.715, allocations: 2.938 kB / 1.223 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/2.716, allocations: 94.28 kB / 1.223 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/2.716, allocations: 3.281 kB / 1.223 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/2.716, allocations: 17.88 kB / 1.223 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005401/2.716, allocations: 1.772 MB / 1.225 GB, free: 133.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/2.716, allocations: 7.891 kB / 1.225 GB, free: 133.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/2.717, allocations: 1.198 MB / 1.226 GB, free: 132.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003132/2.718, allocations: 237.6 kB / 1.226 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/2.718, allocations: 16.84 kB / 1.226 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006026/2.718, allocations: 67.77 kB / 1.226 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/2.719, allocations: 53.28 kB / 1.226 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/2.719, allocations: 22.84 kB / 1.226 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005898/2.719, allocations: 0.5566 MB / 1.227 GB, free: 132.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.363e-06/2.719, allocations: 0 / 1.227 GB, free: 132.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001489/2.721, allocations: 0.5054 MB / 1.227 GB, free: 132.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002167/2.723, allocations: 2.296 MB / 1.23 GB, free: 131.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001735/2.725, allocations: 0.9653 MB / 1.231 GB, free: 131.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/2.725, allocations: 3.219 kB / 1.231 GB, free: 131.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004969/2.725, allocations: 334.2 kB / 1.231 GB, free: 131 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/2.727, allocations: 367.5 kB / 1.231 GB, free: 131 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/2.73, allocations: 1.32 MB / 1.233 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/2.73, allocations: 1.022 MB / 1.234 GB, free: 129.9 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0008266/2.731, allocations: 211.9 kB / 1.234 GB, free: 129.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/2.731, allocations: 330.3 kB / 1.234 GB, free: 129.8 MB / 0.6042 GB Notification: Performance of SimCode: time 8.32e-07/2.732, allocations: 0 / 1.234 GB, free: 129.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0464/2.778, allocations: 27.32 MB / 1.261 GB, free: 129.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/2.778, allocations: 220.6 kB / 1.261 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.01/5.788, allocations: 0 / 1.261 GB, free: 128.9 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)