Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.641/1.641, allocations: 288.2 MB / 303.2 MB, free: 8.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 185 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.135/2.135, allocations: 205.4 MB / 0.6305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 97.45 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006671/0.0006673, allocations: 12.03 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2739, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01599/0.29, allocations: 19.84 MB / 0.9989 GB, free: 7.723 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01181/0.3018, allocations: 8.608 MB / 1.007 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.3036, allocations: 31.69 kB / 1.007 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.3052, allocations: 0.5212 MB / 1.008 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.003501/0.3087, allocations: 1.096 MB / 1.009 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.007017/0.3157, allocations: 2.477 MB / 1.011 GB, free: 11 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.002318/0.318, allocations: 1.204 MB / 1.012 GB, free: 9.801 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008752/0.3189, allocations: 0.5806 MB / 1.013 GB, free: 9.203 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.3201, allocations: 0.6501 MB / 1.014 GB, free: 8.551 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007007/0.3209, allocations: 0.4979 MB / 1.014 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 8.436e-05/0.3209, allocations: 28 kB / 1.014 GB, free: 8.023 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.3226, allocations: 0.9049 MB / 1.015 GB, free: 7.117 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.3228, allocations: 167.2 kB / 1.015 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.3231, allocations: 197.1 kB / 1.015 GB, free: 6.754 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.3245, allocations: 1.025 MB / 1.016 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3245, allocations: 0 / 1.016 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.344e-06/0.3245, allocations: 0 / 1.016 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.445e-05/0.3245, allocations: 0 / 1.016 GB, free: 5.727 MB / 0.6355 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.002171/0.3267, allocations: 1.239 MB / 1.018 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3267, allocations: 8.031 kB / 1.018 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.3269, allocations: 94.52 kB / 1.018 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.327, allocations: 118.7 kB / 1.018 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.3281, allocations: 0.6445 MB / 1.018 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/0.3282, allocations: 45.31 kB / 1.019 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.351e-05/0.3283, allocations: 71.91 kB / 1.019 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009748/0.3293, allocations: 0.6663 MB / 1.019 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3293, allocations: 0 / 1.019 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.3293, allocations: 24 kB / 1.019 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.3294, allocations: 15.94 kB / 1.019 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007483/0.3301, allocations: 456.9 kB / 1.02 GB, free: 2.211 MB / 0.6355 GB 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.003605/0.3337, allocations: 2.542 MB / 1.022 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/0.3345, allocations: 377 kB / 1.023 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002953/0.3348, allocations: 344.4 kB / 1.023 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005358/0.3354, allocations: 321.4 kB / 1.023 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.324e-06/0.3354, allocations: 4 kB / 1.023 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001318/0.3367, allocations: 0.7707 MB / 1.024 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3368, allocations: 247.4 kB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009402/0.3378, allocations: 0.8243 MB / 1.025 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.3378, allocations: 41.7 kB / 1.025 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003511/0.3382, allocations: 436.3 kB / 1.025 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.3383, allocations: 126.3 kB / 1.026 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.3383, allocations: 12 kB / 1.026 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3385, allocations: 322 kB / 1.026 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/0.3389, allocations: 209.1 kB / 1.026 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.3394, allocations: 359.6 kB / 1.026 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000468/0.3398, allocations: 255.6 kB / 1.027 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/0.3399, allocations: 4.547 kB / 1.027 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001411/0.3413, allocations: 0.7255 MB / 1.027 GB, free: 9.895 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006335/0.3419, allocations: 1.082 MB / 1.028 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.342, allocations: 7.984 kB / 1.028 GB, free: 8.719 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.342, allocations: 4 kB / 1.028 GB, free: 8.715 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3431, allocations: 187.7 kB / 1.029 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.3442, allocations: 1.774 MB / 1.03 GB, free: 6.688 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008051/0.345, allocations: 111.2 kB / 1.03 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.3451, allocations: 24 kB / 1.03 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.3451, allocations: 4 kB / 1.03 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001168/0.3463, allocations: 0.6465 MB / 1.031 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3463, allocations: 0 / 1.031 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.3463, allocations: 8 kB / 1.031 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.3468, allocations: 127.8 kB / 1.031 GB, free: 5.766 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.3469, allocations: 12.22 kB / 1.031 GB, free: 5.754 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006825/0.3476, allocations: 103.4 kB / 1.031 GB, free: 5.652 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.3476, allocations: 24 kB / 1.031 GB, free: 5.629 MB / 0.6511 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 () * 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.0004809/0.3481, allocations: 346.6 kB / 1.032 GB, free: 5.273 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3482, allocations: 94.83 kB / 1.032 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.3496, allocations: 0.6904 MB / 1.032 GB, free: 4.477 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.3496, allocations: 4 kB / 1.032 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3496, allocations: 0 / 1.032 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3496, allocations: 4 kB / 1.032 GB, free: 4.469 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.3518, allocations: 1.523 MB / 1.034 GB, free: 2.875 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.3519, allocations: 3.984 kB / 1.034 GB, free: 2.871 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004077/0.3523, allocations: 95.81 kB / 1.034 GB, free: 2.777 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3523, allocations: 0 / 1.034 GB, free: 2.777 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.925e-05/0.3523, allocations: 19.98 kB / 1.034 GB, free: 2.758 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00085/0.3532, allocations: 1.766 MB / 1.036 GB, free: 0.9219 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3532, allocations: 4.281 kB / 1.036 GB, free: 0.918 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.3549, allocations: 1.163 MB / 1.037 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004476/0.3554, allocations: 219.8 kB / 1.037 GB, free: 15.47 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.3555, allocations: 24 kB / 1.037 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.356, allocations: 51.95 kB / 1.037 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.3562, allocations: 47.92 kB / 1.037 GB, free: 15.35 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.3562, allocations: 16 kB / 1.037 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0008457/0.3571, allocations: 0.5588 MB / 1.038 GB, free: 14.76 MB / 0.6667 GB Notification: Performance of sort global known variables: time 6.01e-07/0.3571, allocations: 0 / 1.038 GB, free: 14.76 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001594/0.3587, allocations: 455.1 kB / 1.038 GB, free: 14.32 MB / 0.6667 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) * 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.002999/0.3617, allocations: 2.213 MB / 1.04 GB, free: 12.05 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002326/0.3641, allocations: 1.039 MB / 1.041 GB, free: 10.99 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3641, allocations: 0 / 1.041 GB, free: 10.99 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006376/0.3647, allocations: 363.8 kB / 1.042 GB, free: 10.62 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/0.3668, allocations: 375.2 kB / 1.042 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.3713, allocations: 3.898 MB / 1.046 GB, free: 6.25 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.3719, allocations: 1.013 MB / 1.047 GB, free: 5.211 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.00075/0.3727, allocations: 158.1 kB / 1.047 GB, free: 5.055 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.3731, allocations: 335.3 kB / 1.047 GB, free: 4.727 MB / 0.6667 GB Notification: Performance of SimCode: time 8.41e-07/0.3731, allocations: 4 kB / 1.047 GB, free: 4.723 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4728/0.846, allocations: 23.28 MB / 1.07 GB, free: 87.71 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.8463, allocations: 269.7 kB / 1.07 GB, free: 87.35 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/3.683, allocations: 0 / 1.07 GB, free: 87.35 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)