Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001748/0.001748, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001874/0.001874, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.366/1.366, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003033/0.003033, allocations: 295.1 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.044/1.044, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 99.86 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5464/0.5484, allocations: 86.97 MB / 0.7671 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02947/0.578, allocations: 23.27 MB / 0.7898 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01236/0.5904, allocations: 6.502 MB / 0.7961 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.5921, allocations: 23.88 kB / 0.7962 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.5937, allocations: 393.4 kB / 0.7965 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003966/0.5977, allocations: 1.107 MB / 0.7976 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003592/0.6013, allocations: 1.083 MB / 0.7987 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003506/0.6048, allocations: 2.011 MB / 0.8006 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001701/0.6065, allocations: 0.7414 MB / 0.8014 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002259/0.6088, allocations: 0.8367 MB / 0.8022 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.6105, allocations: 0.7158 MB / 0.8029 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002713/0.6108, allocations: 72 kB / 0.8029 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002458/0.6133, allocations: 1.002 MB / 0.8039 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003837/0.6137, allocations: 211.1 kB / 0.8041 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009506/0.6146, allocations: 0.4895 MB / 0.8046 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.6178, allocations: 1.517 MB / 0.8061 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.6178, allocations: 0 / 0.8061 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6178, allocations: 0 / 0.8061 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.171e-05/0.6179, allocations: 4 kB / 0.8061 GB, free: 11.83 MB / 0.5762 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.003585/0.6215, allocations: 1.407 MB / 0.8075 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.6215, allocations: 8.031 kB / 0.8075 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003532/0.6219, allocations: 115.6 kB / 0.8076 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.6235, allocations: 0.6991 MB / 0.8083 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.886e-05/0.6236, allocations: 49.31 kB / 0.8083 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.6237, allocations: 64 kB / 0.8084 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.625, allocations: 0.6624 MB / 0.809 GB, free: 8.691 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.625, allocations: 4 kB / 0.809 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.768e-05/0.6251, allocations: 20 kB / 0.809 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.6251, allocations: 16 kB / 0.809 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.6261, allocations: 444.9 kB / 0.8095 GB, free: 8.215 MB / 0.5762 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.004161/0.6302, allocations: 2.538 MB / 0.812 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007656/0.631, allocations: 361.5 kB / 0.8123 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003524/0.6314, allocations: 192.8 kB / 0.8125 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003446/0.6317, allocations: 340.4 kB / 0.8128 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005741/0.6323, allocations: 322.6 kB / 0.8131 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.554e-06/0.6323, allocations: 0 / 0.8131 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001493/0.6338, allocations: 0.6931 MB / 0.8138 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.634, allocations: 235.3 kB / 0.814 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.6352, allocations: 0.8445 MB / 0.8148 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.656e-05/0.6353, allocations: 45.7 kB / 0.8149 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004066/0.6357, allocations: 436.3 kB / 0.8153 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.6358, allocations: 119.1 kB / 0.8154 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.6361, allocations: 138.1 kB / 0.8155 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.6362, allocations: 326 kB / 0.8159 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.6367, allocations: 211.1 kB / 0.8161 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/0.6372, allocations: 379.5 kB / 0.8164 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008967/0.6381, allocations: 0.5378 MB / 0.8169 GB, free: 88 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.6381, allocations: 3.984 kB / 0.8169 GB, free: 84 kB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0014/0.6396, allocations: 0.737 MB / 0.8177 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.298e-05/0.6396, allocations: 37.69 kB / 0.8177 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.6396, allocations: 4 kB / 0.8177 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.6397, allocations: 7.938 kB / 0.8177 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.6407, allocations: 171.7 kB / 0.8179 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.6419, allocations: 1.782 MB / 0.8196 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/0.6426, allocations: 91.52 kB / 0.8197 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.376e-05/0.6427, allocations: 27.98 kB / 0.8197 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006777/0.6434, allocations: 371.6 kB / 0.8201 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005389/0.644, allocations: 378.2 kB / 0.8204 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008355/0.6448, allocations: 0.531 MB / 0.821 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.787e-06/0.6448, allocations: 0 / 0.821 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization_lambda0): time 0.001339/0.6462, allocations: 0.7267 MB / 0.8217 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.6462, allocations: 37.7 kB / 0.8217 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.6462, allocations: 4.438 kB / 0.8217 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.6463, allocations: 15.94 kB / 0.8217 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/0.6468, allocations: 127.8 kB / 0.8219 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.6468, allocations: 11.92 kB / 0.8219 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007205/0.6475, allocations: 67.64 kB / 0.8219 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.6476, allocations: 27.98 kB / 0.822 GB, free: 10.73 MB / 0.5919 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.0002859/0.6479, allocations: 259 kB / 0.8222 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.6481, allocations: 94.81 kB / 0.8223 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.6495, allocations: 0.6678 MB / 0.8229 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.6495, allocations: 0 / 0.8229 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.6495, allocations: 0 / 0.8229 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/0.6499, allocations: 223.7 kB / 0.8232 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.6501, allocations: 16 kB / 0.8232 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004421/0.6505, allocations: 27.97 kB / 0.8232 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.6506, allocations: 47.88 kB / 0.8232 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001618/0.6523, allocations: 0.9397 MB / 0.8242 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001619/0.6539, allocations: 1.186 MB / 0.8253 GB, free: 7.176 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004443/0.6544, allocations: 249.2 kB / 0.8256 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008034/0.6552, allocations: 0.5709 MB / 0.8261 GB, free: 6.352 MB / 0.5919 GB Notification: Performance of Backend: time 7.61e-07/0.6552, allocations: 0 / 0.8261 GB, free: 6.352 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003693/0.6589, allocations: 1.185 MB / 0.8273 GB, free: 5.145 MB / 0.5919 GB Notification: Performance of SimCode: time 0.003665/0.6626, allocations: 2.099 MB / 0.8293 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of Templates: time 0.03501/0.6976, allocations: 18.74 MB / 0.8476 GB, free: 472 kB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)