Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.004935/0.004934, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001117/0.001117, allocations: 198.5 kB / 16.68 MB, free: 5.969 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9421/0.9421, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.89 kB / 0.5852 GB, free: 3.848 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.352, allocations: 80.91 MB / 0.6642 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1044/0.4564, allocations: 112.6 MB / 0.7742 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02913/0.4856, allocations: 20.22 MB / 0.7939 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003466/0.489, allocations: 107.4 kB / 0.794 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003724/0.4928, allocations: 1.308 MB / 0.7953 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.5033, allocations: 3.857 MB / 0.7991 GB, free: 7.066 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.007633/0.5109, allocations: 3.118 MB / 0.8021 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.009336/0.5203, allocations: 7.228 MB / 0.8092 GB, free: 12.74 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004088/0.5244, allocations: 2.58 MB / 0.8117 GB, free: 10.1 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006512/0.5309, allocations: 2.88 MB / 0.8145 GB, free: 7.215 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003781/0.5347, allocations: 2.131 MB / 0.8166 GB, free: 5.074 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0008736/0.5356, allocations: 259.9 kB / 0.8168 GB, free: 4.82 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.5397, allocations: 1.646 MB / 0.8184 GB, free: 3.172 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0008648/0.5406, allocations: 0.6851 MB / 0.8191 GB, free: 2.484 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.5426, allocations: 1.512 MB / 0.8206 GB, free: 0.9648 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.006359/0.549, allocations: 4.427 MB / 0.8249 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.5491, allocations: 0 / 0.8249 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.046e-06/0.5491, allocations: 0 / 0.8249 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.857e-05/0.5491, allocations: 3.938 kB / 0.8249 GB, free: 12.52 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005259/0.5544, allocations: 3.32 MB / 0.8282 GB, free: 9.125 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.5544, allocations: 12.03 kB / 0.8282 GB, free: 9.113 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002514/0.5547, allocations: 219.5 kB / 0.8284 GB, free: 8.887 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007355/0.5554, allocations: 341.9 kB / 0.8287 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003661/0.5591, allocations: 2.223 MB / 0.8309 GB, free: 6.258 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.143e-05/0.5592, allocations: 123 kB / 0.831 GB, free: 6.137 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002312/0.5595, allocations: 168 kB / 0.8311 GB, free: 5.973 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.5622, allocations: 1.612 MB / 0.8327 GB, free: 4.297 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/0.5622, allocations: 3.953 kB / 0.8327 GB, free: 4.293 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.5624, allocations: 64 kB / 0.8328 GB, free: 4.23 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/0.5624, allocations: 43.98 kB / 0.8328 GB, free: 4.188 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.5645, allocations: 1.147 MB / 0.834 GB, free: 3.035 MB / 0.6544 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.01055/0.575, allocations: 7.938 MB / 0.8417 GB, free: 10.59 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007791/0.5758, allocations: 466 kB / 0.8421 GB, free: 10.13 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/0.5763, allocations: 327 kB / 0.8425 GB, free: 9.809 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006044/0.5769, allocations: 0.7563 MB / 0.8432 GB, free: 8.887 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.577, allocations: 47.05 kB / 0.8432 GB, free: 8.832 MB / 0.67 GB Notification: Performance of pre-optimization done (n=60): time 2.164e-06/0.577, allocations: 0 / 0.8432 GB, free: 8.832 MB / 0.67 GB Notification: Performance of matching and sorting (n=60): time 0.002063/0.5791, allocations: 1.005 MB / 0.8442 GB, free: 7.82 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.5791, allocations: 63.95 kB / 0.8443 GB, free: 7.746 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/0.5821, allocations: 2.328 MB / 0.8466 GB, free: 5.406 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.5823, allocations: 45.7 kB / 0.8466 GB, free: 5.355 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009919/0.5833, allocations: 1.167 MB / 0.8477 GB, free: 4.18 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.5835, allocations: 230 kB / 0.848 GB, free: 3.953 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003608/0.5838, allocations: 254.8 kB / 0.8482 GB, free: 3.695 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.584, allocations: 345.9 kB / 0.8485 GB, free: 3.352 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006667/0.5847, allocations: 365.9 kB / 0.8489 GB, free: 2.992 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009704/0.5856, allocations: 0.7502 MB / 0.8496 GB, free: 2.086 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.5871, allocations: 0.9824 MB / 0.8506 GB, free: 0.9922 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.5871, allocations: 4 kB / 0.8506 GB, free: 0.9883 MB / 0.67 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002335/0.5895, allocations: 1.305 MB / 0.8519 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.5895, allocations: 8 kB / 0.8519 GB, free: 15.66 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.5895, allocations: 8 kB / 0.8519 GB, free: 15.66 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.5896, allocations: 16 kB / 0.8519 GB, free: 15.64 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.5906, allocations: 251.6 kB / 0.8521 GB, free: 15.39 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/0.5906, allocations: 19.92 kB / 0.8521 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.5921, allocations: 178.8 kB / 0.8523 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.798e-05/0.5922, allocations: 51.98 kB / 0.8524 GB, free: 15.15 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001302/0.5935, allocations: 0.7641 MB / 0.8531 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009248/0.5944, allocations: 0.7462 MB / 0.8538 GB, free: 13.47 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00134/0.5958, allocations: 0.9447 MB / 0.8548 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.878e-06/0.5958, allocations: 0 / 0.8548 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002169/0.598, allocations: 1.275 MB / 0.856 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.598, allocations: 10.03 kB / 0.856 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.598, allocations: 8 kB / 0.856 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.598, allocations: 16 kB / 0.856 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009389/0.599, allocations: 247.6 kB / 0.8563 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.599, allocations: 19.92 kB / 0.8563 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.6005, allocations: 127.9 kB / 0.8564 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.391e-05/0.6006, allocations: 55.98 kB / 0.8565 GB, free: 10.66 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002786/0.6009, allocations: 247.8 kB / 0.8567 GB, free: 10.41 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003898/0.6013, allocations: 250.4 kB / 0.8569 GB, free: 10.16 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.603, allocations: 0.8935 MB / 0.8578 GB, free: 9.254 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.6031, allocations: 4 kB / 0.8578 GB, free: 9.25 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6031, allocations: 288 / 0.8578 GB, free: 9.25 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001031/0.6041, allocations: 0.6892 MB / 0.8585 GB, free: 8.531 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/0.6079, allocations: 2.586 MB / 0.861 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.608, allocations: 0 / 0.861 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/0.6085, allocations: 131.9 kB / 0.8611 GB, free: 5.746 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.812e-06/0.6086, allocations: 8 kB / 0.8611 GB, free: 5.738 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.327e-05/0.6086, allocations: 23.98 kB / 0.8612 GB, free: 5.715 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.6086, allocations: 3.938 kB / 0.8612 GB, free: 5.711 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6086, allocations: 4 kB / 0.8612 GB, free: 5.707 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.6106, allocations: 1.319 MB / 0.8625 GB, free: 4.355 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/0.6114, allocations: 431.3 kB / 0.8629 GB, free: 3.914 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.6116, allocations: 12 kB / 0.8629 GB, free: 3.902 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.6126, allocations: 43.89 kB / 0.8629 GB, free: 3.859 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.698e-05/0.6127, allocations: 52.44 kB / 0.863 GB, free: 3.809 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/0.6128, allocations: 35.91 kB / 0.863 GB, free: 3.773 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002128/0.615, allocations: 1.566 MB / 0.8645 GB, free: 2.203 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.8e-07/0.615, allocations: 3.938 kB / 0.8645 GB, free: 2.199 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002526/0.6175, allocations: 1.119 MB / 0.8656 GB, free: 1.078 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2919/0.9095, allocations: 2.521 MB / 0.8681 GB, free: 184.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002654/0.9121, allocations: 1.358 MB / 0.8694 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9122, allocations: 0.7812 kB / 0.8694 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005403/0.9127, allocations: 330.5 kB / 0.8697 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006157/0.9189, allocations: 1.384 MB / 0.8711 GB, free: 183.5 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02098/0.9399, allocations: 14.93 MB / 0.8857 GB, free: 176.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/0.9408, allocations: 1.596 MB / 0.8872 GB, free: 175.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002034/0.9429, allocations: 0.4892 MB / 0.8877 GB, free: 175.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.9439, allocations: 0.9631 MB / 0.8887 GB, free: 174.8 MB / 0.6856 GB Notification: Performance of SimCode: time 6.51e-07/0.9439, allocations: 0 / 0.8887 GB, free: 174.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08658/1.031, allocations: 64.17 MB / 0.9513 GB, free: 121 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/13.6, allocations: 3.984 kB / 0.9513 GB, free: 121 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)