Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009614/0.0009614, allocations: 96.62 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005589/0.005589, allocations: 169.9 kB / 16.27 MB, free: 6.648 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.443/1.443, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 473.4 MB / 0.7469 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003561, allocations: 12.61 kB / 0.9158 GB, free: 33.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3422, allocations: 162.2 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02929/0.3715, allocations: 22.52 MB / 1.096 GB, free: 0.9648 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01102/0.3826, allocations: 6.5 MB / 1.102 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009327/0.3836, allocations: 23.81 kB / 1.102 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009238/0.3845, allocations: 330.2 kB / 1.103 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002726/0.3872, allocations: 0.9798 MB / 1.104 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0025/0.3897, allocations: 0.9691 MB / 1.105 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00303/0.3928, allocations: 2.495 MB / 1.107 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.3941, allocations: 0.6262 MB / 1.108 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.3958, allocations: 0.7272 MB / 1.108 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.3969, allocations: 0.6846 MB / 1.109 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.114e-05/0.397, allocations: 32 kB / 1.109 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.3988, allocations: 0.9436 MB / 1.11 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002672/0.3991, allocations: 171.1 kB / 1.11 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005181/0.3996, allocations: 478.9 kB / 1.111 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.4013, allocations: 1.413 MB / 1.112 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4013, allocations: 0 / 1.112 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4013, allocations: 0 / 1.112 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.4014, allocations: 4 kB / 1.112 GB, free: 0.5469 MB / 0.8575 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.002206/0.4036, allocations: 1.24 MB / 1.113 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4036, allocations: 8.031 kB / 1.113 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.4038, allocations: 123.5 kB / 1.113 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.4048, allocations: 0.6757 MB / 1.114 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.585e-05/0.4049, allocations: 53.31 kB / 1.114 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.405, allocations: 60 kB / 1.114 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.4061, allocations: 0.6702 MB / 1.115 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.4061, allocations: 0 / 1.115 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/0.4062, allocations: 24 kB / 1.115 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.4062, allocations: 16 kB / 1.115 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00085/0.4071, allocations: 452.9 kB / 1.115 GB, free: 13.1 MB / 0.8731 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.003541/0.4106, allocations: 2.549 MB / 1.118 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007306/0.4114, allocations: 375.3 kB / 1.118 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.4117, allocations: 196.6 kB / 1.118 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00033/0.4121, allocations: 344.3 kB / 1.119 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005712/0.4127, allocations: 336.1 kB / 1.119 GB, free: 9.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.4127, allocations: 0 / 1.119 GB, free: 9.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=37): time 0.001314/0.414, allocations: 0.7086 MB / 1.12 GB, free: 8.352 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.4141, allocations: 243.3 kB / 1.12 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009423/0.4151, allocations: 0.8524 MB / 1.121 GB, free: 7.184 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.4151, allocations: 41.7 kB / 1.121 GB, free: 7.137 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.4155, allocations: 440.4 kB / 1.121 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.4156, allocations: 118.3 kB / 1.121 GB, free: 6.582 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-05/0.4157, allocations: 57.69 kB / 1.121 GB, free: 6.52 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001891/0.4159, allocations: 330 kB / 1.122 GB, free: 6.191 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.4163, allocations: 205.1 kB / 1.122 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005527/0.4169, allocations: 379.7 kB / 1.122 GB, free: 5.562 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008191/0.4177, allocations: 0.5417 MB / 1.123 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4177, allocations: 4 kB / 1.123 GB, free: 4.969 MB / 0.8731 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001314/0.4191, allocations: 0.7448 MB / 1.124 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.4192, allocations: 202.3 kB / 1.124 GB, free: 3.965 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4193, allocations: 3.984 kB / 1.124 GB, free: 3.961 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.3e-05/0.4193, allocations: 8 kB / 1.124 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.4203, allocations: 183.7 kB / 1.124 GB, free: 3.773 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.4216, allocations: 1.778 MB / 1.126 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006784/0.4222, allocations: 111.4 kB / 1.126 GB, free: 1.816 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-05/0.4223, allocations: 24 kB / 1.126 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/0.4223, allocations: 5.719 kB / 1.126 GB, free: 1.789 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001177/0.4235, allocations: 0.6465 MB / 1.126 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.4235, allocations: 0 / 1.126 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.756e-06/0.4235, allocations: 8.344 kB / 1.126 GB, free: 1.133 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.4241, allocations: 135.7 kB / 1.127 GB, free: 1 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.4241, allocations: 8 kB / 1.127 GB, free: 0.9922 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000605/0.4247, allocations: 103.4 kB / 1.127 GB, free: 0.8906 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.4247, allocations: 20 kB / 1.127 GB, free: 0.8711 MB / 0.8731 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 (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 (67): * Single equations (assignments): 63 * 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.0004322/0.4252, allocations: 350.6 kB / 1.127 GB, free: 0.5117 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.4253, allocations: 90.88 kB / 1.127 GB, free: 432 kB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.4267, allocations: 0.6946 MB / 1.128 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.4267, allocations: 12.02 kB / 1.128 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4267, allocations: 0 / 1.128 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.4267, allocations: 3.984 kB / 1.128 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.4288, allocations: 1.527 MB / 1.129 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.4288, allocations: 0 / 1.129 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.4292, allocations: 95.98 kB / 1.129 GB, free: 14 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.4292, allocations: 4 kB / 1.129 GB, free: 14 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.4293, allocations: 19.98 kB / 1.129 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009396/0.4302, allocations: 1.762 MB / 1.131 GB, free: 12.15 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4302, allocations: 4.031 kB / 1.131 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.4319, allocations: 1.12 MB / 1.132 GB, free: 11 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003239/0.4323, allocations: 223.8 kB / 1.132 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.4324, allocations: 16 kB / 1.132 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/0.433, allocations: 59.94 kB / 1.132 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.4332, allocations: 43.88 kB / 1.133 GB, free: 10.64 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.893e-05/0.4332, allocations: 27.92 kB / 1.133 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006989/0.4339, allocations: 0.5709 MB / 1.133 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4339, allocations: 0 / 1.133 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001271/0.4352, allocations: 459.2 kB / 1.134 GB, free: 9.582 MB / 0.8887 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 (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.0007815/0.436, allocations: 338.3 kB / 1.134 GB, free: 9.25 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002274/0.4383, allocations: 1.039 MB / 1.135 GB, free: 8.18 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4383, allocations: 7.938 kB / 1.135 GB, free: 8.172 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.4389, allocations: 356.2 kB / 1.135 GB, free: 7.812 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.4412, allocations: 372.4 kB / 1.136 GB, free: 7.453 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.4439, allocations: 1.81 MB / 1.137 GB, free: 5.598 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.4445, allocations: 1.002 MB / 1.138 GB, free: 4.57 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005808/0.4451, allocations: 154 kB / 1.138 GB, free: 4.418 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.4453, allocations: 63.42 kB / 1.139 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of SimCode: time 4.21e-07/0.4453, allocations: 0 / 1.139 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of Templates: time 0.02906/0.4744, allocations: 15.9 MB / 1.154 GB, free: 4.645 MB / 0.9044 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)