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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009131/0.0009131, allocations: 96.03 kB / 15.68 MB, free: 488 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.0009792/0.0009795, allocations: 171.3 kB / 16.56 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.4/1.4, 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.6459/0.6459, allocations: 113.7 MB / 405.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000522/0.0005221, allocations: 8 kB / 493 MB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1801, allocations: 77.12 MB / 0.5567 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02468/0.2049, allocations: 19.57 MB / 0.5758 GB, free: 8.059 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008727/0.2136, allocations: 5.637 MB / 0.5813 GB, free: 2.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.2148, allocations: 23.81 kB / 0.5814 GB, free: 2.387 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.2158, allocations: 346.3 kB / 0.5817 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003218/0.2191, allocations: 1.141 MB / 0.5828 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.482/0.701, allocations: 1.075 MB / 0.5839 GB, free: 11.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004363/0.7054, allocations: 1.214 MB / 0.585 GB, free: 11.76 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.7074, allocations: 0.5917 MB / 0.5856 GB, free: 11.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.7099, allocations: 0.6572 MB / 0.5863 GB, free: 11.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.7116, allocations: 0.5089 MB / 0.5868 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001965/0.7119, allocations: 32.5 kB / 0.5868 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003781/0.7156, allocations: 0.8999 MB / 0.5877 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004022/0.7161, allocations: 162.8 kB / 0.5878 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000805/0.7169, allocations: 201.4 kB / 0.588 GB, free: 11.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004052/0.721, allocations: 1.027 MB / 0.589 GB, free: 11.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.721, allocations: 1.281 kB / 0.589 GB, free: 11.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.438e-06/0.721, allocations: 0 / 0.589 GB, free: 11.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.7211, allocations: 2.719 kB / 0.589 GB, free: 11.59 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00422/0.7253, allocations: 1.25 MB / 0.5902 GB, free: 26.79 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.059e-05/0.7254, allocations: 9.969 kB / 0.5903 GB, free: 26.79 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003158/0.7257, allocations: 99.64 kB / 0.5903 GB, free: 26.75 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.7261, allocations: 112.3 kB / 0.5905 GB, free: 26.69 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/0.7283, allocations: 0.6484 MB / 0.5911 GB, free: 26.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.184e-05/0.7284, allocations: 48.25 kB / 0.5911 GB, free: 26.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.7286, allocations: 63.31 kB / 0.5912 GB, free: 26.39 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.7305, allocations: 0.6596 MB / 0.5918 GB, free: 26.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.7306, allocations: 4.906 kB / 0.5918 GB, free: 26.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.855e-05/0.7307, allocations: 21.97 kB / 0.5919 GB, free: 26.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.7307, allocations: 13.41 kB / 0.5919 GB, free: 26.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.7321, allocations: 457.4 kB / 0.5923 GB, free: 26.24 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.008406/0.7406, allocations: 2.537 MB / 0.5948 GB, free: 24.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.7419, allocations: 367.1 kB / 0.5951 GB, free: 24.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000363/0.7423, allocations: 346.3 kB / 0.5955 GB, free: 24.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009087/0.7432, allocations: 325.1 kB / 0.5958 GB, free: 24.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 4.248e-06/0.7432, allocations: 0 / 0.5958 GB, free: 24.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.002697/0.7459, allocations: 0.7727 MB / 0.5965 GB, free: 24.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.717e-05/0.7461, allocations: 249.1 kB / 0.5968 GB, free: 23.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002155/0.7482, allocations: 0.838 MB / 0.5976 GB, free: 23.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.7484, allocations: 44.89 kB / 0.5976 GB, free: 23.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000546/0.749, allocations: 432.3 kB / 0.598 GB, free: 23.56 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.7492, allocations: 122 kB / 0.5982 GB, free: 23.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.7492, allocations: 12.69 kB / 0.5982 GB, free: 23.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.7494, allocations: 331.8 kB / 0.5985 GB, free: 23.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007262/0.7501, allocations: 205.2 kB / 0.5987 GB, free: 23.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.7511, allocations: 359.4 kB / 0.599 GB, free: 23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008085/0.7519, allocations: 257 kB / 0.5993 GB, free: 22.97 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.7519, allocations: 0.875 kB / 0.5993 GB, free: 22.97 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002439/0.7544, allocations: 0.7315 MB / 0.6 GB, free: 22.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006473/0.755, allocations: 1.089 MB / 0.6011 GB, free: 21.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.7551, allocations: 4.031 kB / 0.6011 GB, free: 21.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.585e-05/0.7551, allocations: 9.672 kB / 0.6011 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00213/0.7573, allocations: 177.3 kB / 0.6012 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.7591, allocations: 1.776 MB / 0.603 GB, free: 19.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.7609, allocations: 116.1 kB / 0.6031 GB, free: 19.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002158/0.7612, allocations: 27.69 kB / 0.6031 GB, free: 19.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.7612, allocations: 5.438 kB / 0.6031 GB, free: 19.91 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002371/0.7636, allocations: 0.6382 MB / 0.6037 GB, free: 19.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.7636, allocations: 4.844 kB / 0.6037 GB, free: 19.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.7637, allocations: 5.219 kB / 0.6037 GB, free: 19.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.7647, allocations: 129.5 kB / 0.6039 GB, free: 19.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/0.7647, allocations: 6.328 kB / 0.6039 GB, free: 19.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.7663, allocations: 107.3 kB / 0.604 GB, free: 19.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.7665, allocations: 26.31 kB / 0.604 GB, free: 19.83 MB / 462.1 MB 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 () * Number of clocked 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.0009513/0.7674, allocations: 344.9 kB / 0.6043 GB, free: 19.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003416/0.7678, allocations: 96.23 kB / 0.6044 GB, free: 19.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.7701, allocations: 0.6862 MB / 0.6051 GB, free: 19.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.7702, allocations: 9.125 kB / 0.6051 GB, free: 19.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.7702, allocations: 2 kB / 0.6051 GB, free: 19.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.7702, allocations: 2.703 kB / 0.6051 GB, free: 19.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/0.7744, allocations: 1.524 MB / 0.6066 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.7745, allocations: 2.156 kB / 0.6066 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000819/0.7753, allocations: 89.64 kB / 0.6067 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.78e-05/0.7753, allocations: 4.734 kB / 0.6067 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/0.7754, allocations: 15.23 kB / 0.6067 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.7767, allocations: 1.768 MB / 0.6084 GB, free: 17.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7767, allocations: 1.031 kB / 0.6084 GB, free: 17.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002942/0.7797, allocations: 1.161 MB / 0.6096 GB, free: 16.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006496/0.7803, allocations: 236.5 kB / 0.6098 GB, free: 16.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.7806, allocations: 16.44 kB / 0.6098 GB, free: 16.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7817, allocations: 59.73 kB / 0.6099 GB, free: 16.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.7819, allocations: 46.16 kB / 0.6099 GB, free: 16.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.488e-05/0.782, allocations: 18.47 kB / 0.6099 GB, free: 16.56 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001464/0.7835, allocations: 0.5644 MB / 0.6105 GB, free: 16.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7835, allocations: 0 / 0.6105 GB, free: 16.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00293/0.7865, allocations: 458.3 kB / 0.6109 GB, free: 16.39 MB / 462.1 MB 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) * Number of clocked states: 0 () * 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.004661/0.7912, allocations: 2.227 MB / 0.6131 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004122/0.7953, allocations: 1.021 MB / 0.6141 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.7954, allocations: 0.9375 kB / 0.6141 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.7966, allocations: 353.3 kB / 0.6144 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003975/0.8006, allocations: 364.1 kB / 0.6148 GB, free: 14.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007055/0.8077, allocations: 3.937 MB / 0.6186 GB, free: 11.97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/0.8083, allocations: 1.021 MB / 0.6196 GB, free: 11.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007477/0.8091, allocations: 154.2 kB / 0.6198 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/0.8095, allocations: 335.4 kB / 0.6201 GB, free: 11.21 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.8095, allocations: 0 / 0.6201 GB, free: 11.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1485/0.9579, allocations: 23.17 MB / 0.6427 GB, free: 10.97 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004258/0.9585, allocations: 256.5 kB / 0.6429 GB, free: 10.63 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.031/3.989, allocations: 3.938 kB / 0.643 GB, free: 10.63 MB / 478.1 MB (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) Environment - environmentSimulation: