Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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 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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2011/0.2019, allocations: 82.22 MB / 0.5941 GB, free: 5.562 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02446/0.2264, allocations: 22.33 MB / 0.6159 GB, free: 15.14 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.2407, allocations: 9.018 MB / 0.6247 GB, free: 6.105 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.2424, allocations: 27.75 kB / 0.6248 GB, free: 6.078 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.2437, allocations: 362.1 kB / 0.6251 GB, free: 5.723 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003036/0.2468, allocations: 0.9057 MB / 0.626 GB, free: 4.816 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002596/0.2494, allocations: 0.8397 MB / 0.6268 GB, free: 3.988 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003247/0.2527, allocations: 2.513 MB / 0.6293 GB, free: 1.469 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009708/0.2536, allocations: 0.5939 MB / 0.6298 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.2553, allocations: 0.739 MB / 0.6306 GB, free: 120 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009877/0.2563, allocations: 0.673 MB / 0.6312 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.043e-05/0.2564, allocations: 32 kB / 0.6313 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.258, allocations: 0.7721 MB / 0.632 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.2582, allocations: 179.2 kB / 0.6322 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005005/0.2587, allocations: 467.1 kB / 0.6326 GB, free: 14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001558/0.2603, allocations: 1.296 MB / 0.6339 GB, free: 12.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2603, allocations: 4 kB / 0.6339 GB, free: 12.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2603, allocations: 0 / 0.6339 GB, free: 12.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.2603, allocations: 0 / 0.6339 GB, free: 12.69 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001911/0.2623, allocations: 1.166 MB / 0.635 GB, free: 11.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.2623, allocations: 12.03 kB / 0.635 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.2634, allocations: 219.5 kB / 0.6353 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.2645, allocations: 0.6524 MB / 0.6359 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.2646, allocations: 49.31 kB / 0.6359 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.2647, allocations: 64 kB / 0.636 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004267/0.269, allocations: 1.303 MB / 0.6373 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.269, allocations: 0 / 0.6373 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.326e-05/0.2691, allocations: 31.94 kB / 0.6373 GB, free: 9.043 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.2691, allocations: 16 kB / 0.6373 GB, free: 9.027 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003985/0.2731, allocations: 1.081 MB / 0.6384 GB, free: 7.941 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004301/0.2775, allocations: 3.11 MB / 0.6414 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003982/0.2815, allocations: 0.9584 MB / 0.6423 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.282, allocations: 198.7 kB / 0.6425 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003255/0.2823, allocations: 121.1 kB / 0.6426 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003717/0.2861, allocations: 0.8686 MB / 0.6435 GB, free: 2.441 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 2.415e-06/0.2861, allocations: 4 kB / 0.6435 GB, free: 2.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.007648/0.2937, allocations: 1.79 MB / 0.6452 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.2939, allocations: 290.7 kB / 0.6455 GB, free: 292 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.2952, allocations: 0.8461 MB / 0.6464 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.2954, allocations: 37.7 kB / 0.6464 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003834/0.2958, allocations: 444.2 kB / 0.6468 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.2959, allocations: 98.62 kB / 0.6469 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.296, allocations: 61.69 kB / 0.647 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.2961, allocations: 333.9 kB / 0.6473 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.2974, allocations: 432.9 kB / 0.6477 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.2988, allocations: 0.6138 MB / 0.6483 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/0.3014, allocations: 0.9533 MB / 0.6492 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.3014, allocations: 12.09 kB / 0.6492 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003172/0.3046, allocations: 1.18 MB / 0.6504 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.3047, allocations: 229.7 kB / 0.6506 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3048, allocations: 4 kB / 0.6506 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.3048, allocations: 4 kB / 0.6506 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004799/0.3096, allocations: 0.8584 MB / 0.6515 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007556/0.3172, allocations: 4.871 MB / 0.6562 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.3188, allocations: 215 kB / 0.6564 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.321e-05/0.3189, allocations: 31.97 kB / 0.6564 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3189, allocations: 7.938 kB / 0.6565 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001146/0.3201, allocations: 0.6247 MB / 0.6571 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3201, allocations: 4 kB / 0.6571 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/0.3201, allocations: 4 kB / 0.6571 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.3206, allocations: 131.8 kB / 0.6572 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.3206, allocations: 4 kB / 0.6572 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007434/0.3214, allocations: 111.7 kB / 0.6573 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.3214, allocations: 28 kB / 0.6573 GB, free: 3.531 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000532/0.322, allocations: 348 kB / 0.6577 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3221, allocations: 90.91 kB / 0.6578 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.3249, allocations: 0.9563 MB / 0.6587 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3249, allocations: 8 kB / 0.6587 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.3249, allocations: 0 / 0.6587 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.325, allocations: 0 / 0.6587 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.326, allocations: 0.8855 MB / 0.6596 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3261, allocations: 4 kB / 0.6596 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003989/0.3301, allocations: 0.7493 MB / 0.6603 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.3301, allocations: 7.984 kB / 0.6603 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-05/0.3301, allocations: 11.98 kB / 0.6603 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006205/0.3363, allocations: 4.756 MB / 0.665 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3364, allocations: 4.078 kB / 0.665 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.3403, allocations: 1.418 MB / 0.6663 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002947/0.3406, allocations: 164.1 kB / 0.6665 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3407, allocations: 16 kB / 0.6665 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009997/0.3417, allocations: 155.7 kB / 0.6667 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3419, allocations: 39.88 kB / 0.6667 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.3419, allocations: 15.98 kB / 0.6667 GB, free: 9.379 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008783/0.3428, allocations: 0.5659 MB / 0.6673 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3428, allocations: 0 / 0.6673 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001288/0.3441, allocations: 427.6 kB / 0.6677 GB, free: 8.383 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005485/0.3447, allocations: 231.4 kB / 0.6679 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007495/0.3522, allocations: 2.051 MB / 0.6699 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.3522, allocations: 4 kB / 0.6699 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007918/0.3601, allocations: 1.599 MB / 0.6715 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.3625, allocations: 391.7 kB / 0.6718 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.3677, allocations: 2.306 MB / 0.6741 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.3684, allocations: 0.9767 MB / 0.675 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007473/0.3692, allocations: 142.1 kB / 0.6752 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.3694, allocations: 67.39 kB / 0.6752 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/0.3694, allocations: 0 / 0.6752 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of Templates: time 0.3465/0.716, allocations: 17.13 MB / 0.692 GB, free: 95.52 MB / 0.5294 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: