Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007583/0.0007584, allocations: 98.03 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.004553/0.004553, allocations: 168.3 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.6/1.6, allocations: 292.7 MB / 0.5502 GB, free: 14.48 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005104/0.0005105, allocations: 18.98 kB / 0.6744 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2067, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02772/0.2344, allocations: 29.32 MB / 0.8166 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01579/0.2503, allocations: 11.86 MB / 0.8282 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.2515, allocations: 43.62 kB / 0.8283 GB, free: 2.117 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0009905/0.2525, allocations: 345.9 kB / 0.8286 GB, free: 1.777 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.2557, allocations: 1.22 MB / 0.8298 GB, free: 0.5547 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002509/0.2582, allocations: 1.038 MB / 0.8308 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004341/0.2626, allocations: 4.188 MB / 0.8349 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.264, allocations: 1.143 MB / 0.836 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002256/0.2663, allocations: 1.464 MB / 0.8374 GB, free: 8.699 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.2687, allocations: 1.597 MB / 0.839 GB, free: 7.098 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002799/0.269, allocations: 64 kB / 0.8391 GB, free: 7.035 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.2708, allocations: 0.9358 MB / 0.84 GB, free: 6.098 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003834/0.2712, allocations: 334.7 kB / 0.8403 GB, free: 5.77 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007858/0.272, allocations: 0.7015 MB / 0.841 GB, free: 5.059 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.002236/0.2742, allocations: 2.084 MB / 0.843 GB, free: 2.969 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2743, allocations: 0 / 0.843 GB, free: 2.969 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.863e-06/0.2743, allocations: 3.938 kB / 0.843 GB, free: 2.965 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.489e-05/0.2743, allocations: 0 / 0.843 GB, free: 2.965 MB / 0.6544 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.002283/0.2766, allocations: 1.317 MB / 0.8443 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.2766, allocations: 12.03 kB / 0.8443 GB, free: 1.582 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.2767, allocations: 98.7 kB / 0.8444 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.2771, allocations: 146.9 kB / 0.8445 GB, free: 1.332 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.2786, allocations: 0.8945 MB / 0.8454 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.348e-05/0.2786, allocations: 81.31 kB / 0.8455 GB, free: 324 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.2789, allocations: 120 kB / 0.8456 GB, free: 204 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2799, allocations: 0.6395 MB / 0.8462 GB, free: 15.53 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.2799, allocations: 0 / 0.8462 GB, free: 15.53 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.489e-05/0.28, allocations: 27.94 kB / 0.8463 GB, free: 15.5 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.28, allocations: 19.94 kB / 0.8463 GB, free: 15.48 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008975/0.2809, allocations: 476.9 kB / 0.8467 GB, free: 15.02 MB / 0.67 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.004053/0.285, allocations: 2.867 MB / 0.8495 GB, free: 12 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.2856, allocations: 313.8 kB / 0.8498 GB, free: 11.68 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.2859, allocations: 153.3 kB / 0.85 GB, free: 11.53 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003028/0.2862, allocations: 348.7 kB / 0.8503 GB, free: 11.12 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.2862, allocations: 34.78 kB / 0.8503 GB, free: 11.07 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.2862, allocations: 4 kB / 0.8503 GB, free: 11.07 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001244/0.2875, allocations: 0.5398 MB / 0.8509 GB, free: 10.52 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.2875, allocations: 59.41 kB / 0.8509 GB, free: 10.45 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009666/0.2885, allocations: 0.8869 MB / 0.8518 GB, free: 9.547 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.2886, allocations: 57.7 kB / 0.8518 GB, free: 9.484 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004418/0.2891, allocations: 0.5409 MB / 0.8524 GB, free: 8.934 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.087e-05/0.2892, allocations: 122.2 kB / 0.8525 GB, free: 8.812 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-05/0.2893, allocations: 65.69 kB / 0.8526 GB, free: 8.742 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.2894, allocations: 329.9 kB / 0.8529 GB, free: 8.414 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.2898, allocations: 189.2 kB / 0.8531 GB, free: 8.23 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.2911, allocations: 1.159 MB / 0.8542 GB, free: 6.703 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008084/0.2919, allocations: 467.4 kB / 0.8546 GB, free: 6.223 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2919, allocations: 4 kB / 0.8546 GB, free: 6.219 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001233/0.2931, allocations: 0.6618 MB / 0.8553 GB, free: 5.547 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.298e-05/0.2932, allocations: 156.2 kB / 0.8554 GB, free: 5.363 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.2933, allocations: 4 kB / 0.8554 GB, free: 5.359 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2933, allocations: 11.94 kB / 0.8554 GB, free: 5.348 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.2947, allocations: 231.7 kB / 0.8557 GB, free: 5.121 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.2962, allocations: 2.965 MB / 0.8586 GB, free: 2.039 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/0.2995, allocations: 0.7456 MB / 0.8593 GB, free: 1.293 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.791e-05/0.2996, allocations: 27.98 kB / 0.8593 GB, free: 1.266 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.2996, allocations: 11.94 kB / 0.8593 GB, free: 1.254 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009896/0.3006, allocations: 0.4972 MB / 0.8598 GB, free: 0.7539 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.3006, allocations: 4.188 kB / 0.8598 GB, free: 0.75 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.3007, allocations: 12 kB / 0.8598 GB, free: 0.7383 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.3013, allocations: 155.8 kB / 0.86 GB, free: 0.5859 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.619e-06/0.3013, allocations: 8 kB / 0.86 GB, free: 0.5781 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003132/0.3045, allocations: 0.7377 MB / 0.8607 GB, free: 15.84 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.3045, allocations: 27.98 kB / 0.8607 GB, free: 15.81 MB / 0.6856 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 (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000522/0.3051, allocations: 333.8 kB / 0.861 GB, free: 15.48 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.3052, allocations: 94.78 kB / 0.8611 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.3063, allocations: 0.521 MB / 0.8616 GB, free: 14.85 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3063, allocations: 4 kB / 0.8617 GB, free: 14.85 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3063, allocations: 0 / 0.8617 GB, free: 14.85 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3064, allocations: 3.984 kB / 0.8617 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/0.3082, allocations: 1.263 MB / 0.8629 GB, free: 13.51 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3082, allocations: 0 / 0.8629 GB, free: 13.51 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.3088, allocations: 131.8 kB / 0.863 GB, free: 13.38 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.3088, allocations: 4 kB / 0.863 GB, free: 13.38 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.3088, allocations: 12.12 kB / 0.863 GB, free: 13.37 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.3101, allocations: 2.942 MB / 0.8659 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3101, allocations: 7.969 kB / 0.8659 GB, free: 10.3 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008277/0.311, allocations: 0.5778 MB / 0.8665 GB, free: 9.695 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.3113, allocations: 223.6 kB / 0.8667 GB, free: 9.457 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.003e-05/0.3114, allocations: 12.12 kB / 0.8667 GB, free: 9.445 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005153/0.3119, allocations: 59.88 kB / 0.8668 GB, free: 9.387 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.312, allocations: 31.89 kB / 0.8668 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.312, allocations: 19.98 kB / 0.8668 GB, free: 9.336 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006704/0.3127, allocations: 0.5922 MB / 0.8674 GB, free: 8.734 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3127, allocations: 4 kB / 0.8674 GB, free: 8.73 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001287/0.314, allocations: 0.5384 MB / 0.8679 GB, free: 8.191 MB / 0.6856 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 (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001616/0.3156, allocations: 1.329 MB / 0.8692 GB, free: 6.828 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002378/0.318, allocations: 0.8546 MB / 0.87 GB, free: 5.977 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.318, allocations: 0 / 0.87 GB, free: 5.977 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005701/0.3186, allocations: 241 kB / 0.8703 GB, free: 5.742 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.3212, allocations: 494.9 kB / 0.8707 GB, free: 5.262 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009515/0.3308, allocations: 7.246 MB / 0.8778 GB, free: 13.71 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/0.3313, allocations: 1.018 MB / 0.8788 GB, free: 12.67 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008791/0.3322, allocations: 219 kB / 0.879 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004263/0.3326, allocations: 371.3 kB / 0.8794 GB, free: 12.09 MB / 0.7012 GB Notification: Performance of SimCode: time 5.92e-07/0.3326, allocations: 0 / 0.8794 GB, free: 12.09 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.1/1.432, allocations: 32.71 MB / 0.9113 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000253/1.433, allocations: 271.2 kB / 0.9116 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.695/4.128, allocations: 0 / 0.9116 GB, free: 11.66 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)