Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000844/0.0008444, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009521/0.0009521, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001696/0.001696, allocations: 262.4 kB / 291.3 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004028, allocations: 18.2 kB / 0.598 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1809, allocations: 88.54 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02651/0.2075, allocations: 27.38 MB / 0.7112 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01089/0.2184, allocations: 7.659 MB / 0.7187 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.2199, allocations: 27.75 kB / 0.7187 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.2212, allocations: 309.9 kB / 0.719 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003137/0.2243, allocations: 1.072 MB / 0.7201 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002538/0.2269, allocations: 0.9637 MB / 0.721 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004666/0.2316, allocations: 3.527 MB / 0.7245 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.234, allocations: 1.09 MB / 0.7255 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.2372, allocations: 1.46 MB / 0.7269 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003479/0.2407, allocations: 1.554 MB / 0.7285 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004244/0.2411, allocations: 64 kB / 0.7285 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.2435, allocations: 0.8617 MB / 0.7294 GB, free: 1.426 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004906/0.244, allocations: 338.7 kB / 0.7297 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006174/0.2446, allocations: 249.1 kB / 0.7299 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002004/0.2466, allocations: 1.535 MB / 0.7314 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.2466, allocations: 4 kB / 0.7314 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.918e-06/0.2466, allocations: 0 / 0.7314 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.59e-05/0.2467, allocations: 3.938 kB / 0.7314 GB, free: 15.3 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002154/0.2488, allocations: 1.34 MB / 0.7327 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.2489, allocations: 12.03 kB / 0.7328 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002804/0.2492, allocations: 150.5 kB / 0.7329 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.2506, allocations: 0.8566 MB / 0.7337 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.485e-05/0.2507, allocations: 81.31 kB / 0.7338 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/0.2509, allocations: 116 kB / 0.7339 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.2519, allocations: 0.6434 MB / 0.7346 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.252, allocations: 0 / 0.7346 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.599e-05/0.252, allocations: 24 kB / 0.7346 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.252, allocations: 19.94 kB / 0.7346 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008598/0.2529, allocations: 468.9 kB / 0.735 GB, free: 11.47 MB / 0.5294 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.004022/0.2569, allocations: 2.894 MB / 0.7379 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005525/0.2575, allocations: 311.1 kB / 0.7382 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.2578, allocations: 153.3 kB / 0.7383 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002931/0.2581, allocations: 344.7 kB / 0.7386 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.2581, allocations: 38.78 kB / 0.7387 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=33): time 1.413e-06/0.2581, allocations: 0 / 0.7387 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of matching and sorting (n=33): time 0.001138/0.2593, allocations: 0.5444 MB / 0.7392 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.2593, allocations: 63.41 kB / 0.7393 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009767/0.2603, allocations: 0.8996 MB / 0.7401 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.2604, allocations: 53.7 kB / 0.7402 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004696/0.2609, allocations: 0.5268 MB / 0.7407 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.17e-05/0.261, allocations: 114.3 kB / 0.7408 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.261, allocations: 16 kB / 0.7408 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.2612, allocations: 326 kB / 0.7411 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.2615, allocations: 177.2 kB / 0.7413 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.2628, allocations: 1.147 MB / 0.7424 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.2633, allocations: 302.8 kB / 0.7427 GB, free: 2.934 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2633, allocations: 0 / 0.7427 GB, free: 2.934 MB / 0.5294 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001152/0.2644, allocations: 0.6423 MB / 0.7434 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.877e-05/0.2645, allocations: 152.3 kB / 0.7435 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2646, allocations: 8 kB / 0.7435 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2646, allocations: 4 kB / 0.7435 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.2659, allocations: 239.6 kB / 0.7437 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.2674, allocations: 2.965 MB / 0.7466 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002916/0.2704, allocations: 0.7455 MB / 0.7474 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-05/0.2704, allocations: 31.98 kB / 0.7474 GB, free: 14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.178e-06/0.2704, allocations: 4 kB / 0.7474 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009227/0.2714, allocations: 0.4933 MB / 0.7479 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2714, allocations: 4 kB / 0.7479 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.2714, allocations: 4 kB / 0.7479 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/0.2721, allocations: 160 kB / 0.748 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.2721, allocations: 7.984 kB / 0.748 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00305/0.2752, allocations: 0.7378 MB / 0.7488 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.2752, allocations: 23.98 kB / 0.7488 GB, free: 12.57 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005275/0.2758, allocations: 341.8 kB / 0.7491 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.2759, allocations: 98.69 kB / 0.7492 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.277, allocations: 0.5249 MB / 0.7497 GB, free: 11.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.277, allocations: 7.984 kB / 0.7497 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.277, allocations: 4 kB / 0.7497 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.2771, allocations: 0 / 0.7497 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/0.2789, allocations: 1.265 MB / 0.751 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2789, allocations: 0 / 0.751 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.2795, allocations: 119.8 kB / 0.7511 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2795, allocations: 0 / 0.7511 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.2795, allocations: 12 kB / 0.7511 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.2808, allocations: 2.942 MB / 0.754 GB, free: 7.07 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.2809, allocations: 3.938 kB / 0.754 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008346/0.2817, allocations: 0.5778 MB / 0.7545 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003144/0.282, allocations: 231.6 kB / 0.7548 GB, free: 6.215 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.2821, allocations: 12 kB / 0.7548 GB, free: 6.203 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.2826, allocations: 59.84 kB / 0.7548 GB, free: 6.145 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.2827, allocations: 27.95 kB / 0.7549 GB, free: 6.117 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.2827, allocations: 15.94 kB / 0.7549 GB, free: 6.102 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007052/0.2834, allocations: 0.6006 MB / 0.7555 GB, free: 5.492 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2834, allocations: 0 / 0.7555 GB, free: 5.492 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001406/0.2849, allocations: 0.5384 MB / 0.756 GB, free: 4.953 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006019/0.2855, allocations: 335.6 kB / 0.7563 GB, free: 4.625 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002278/0.2878, allocations: 0.8517 MB / 0.7571 GB, free: 3.773 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2878, allocations: 0 / 0.7571 GB, free: 3.773 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.2883, allocations: 240.7 kB / 0.7574 GB, free: 3.539 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.2905, allocations: 481.9 kB / 0.7578 GB, free: 3.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.2931, allocations: 1.805 MB / 0.7596 GB, free: 1.223 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.2936, allocations: 1.025 MB / 0.7606 GB, free: 172 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009701/0.2946, allocations: 214.9 kB / 0.7608 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.2948, allocations: 79.41 kB / 0.7609 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of SimCode: time 5.71e-07/0.2948, allocations: 0 / 0.7609 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of Templates: time 0.3649/0.6597, allocations: 23.6 MB / 0.7839 GB, free: 56.18 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)