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.004715/0.004715, allocations: 96.56 kB / 15.73 MB, free: 6.035 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.001305/0.001305, allocations: 198.2 kB / 16.68 MB, free: 5.965 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9507/0.9507, allocations: 135.6 MB / 426.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.89 kB / 0.5858 GB, free: 3.195 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3491, allocations: 81.02 MB / 0.6649 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1199/0.4691, allocations: 112.7 MB / 0.7749 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03101/0.5001, allocations: 20.22 MB / 0.7946 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003703/0.5039, allocations: 103.4 kB / 0.7947 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003684/0.5076, allocations: 1.285 MB / 0.796 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.009569/0.5172, allocations: 3.667 MB / 0.7996 GB, free: 6.547 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.007306/0.5245, allocations: 3.118 MB / 0.8026 GB, free: 3.469 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.009559/0.5341, allocations: 7.202 MB / 0.8096 GB, free: 12.24 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003766/0.5379, allocations: 2.579 MB / 0.8122 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005866/0.5437, allocations: 2.816 MB / 0.8149 GB, free: 6.793 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003454/0.5472, allocations: 2.135 MB / 0.817 GB, free: 4.648 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004274/0.5477, allocations: 252 kB / 0.8172 GB, free: 4.402 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003556/0.5512, allocations: 1.65 MB / 0.8189 GB, free: 2.75 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000713/0.5519, allocations: 0.6851 MB / 0.8195 GB, free: 2.062 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001705/0.5537, allocations: 1.508 MB / 0.821 GB, free: 0.5469 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005729/0.5594, allocations: 4.417 MB / 0.8253 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.5594, allocations: 0 / 0.8253 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.472e-06/0.5594, allocations: 7.938 kB / 0.8253 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.561e-05/0.5595, allocations: 0 / 0.8253 GB, free: 12.11 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.00541/0.5649, allocations: 3.32 MB / 0.8286 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5649, allocations: 8.031 kB / 0.8286 GB, free: 8.703 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002767/0.5652, allocations: 219.5 kB / 0.8288 GB, free: 8.477 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007322/0.566, allocations: 338 kB / 0.8291 GB, free: 8.145 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003714/0.5697, allocations: 2.219 MB / 0.8313 GB, free: 5.855 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.5698, allocations: 123 kB / 0.8314 GB, free: 5.734 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/0.5701, allocations: 168 kB / 0.8315 GB, free: 5.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002835/0.5729, allocations: 1.623 MB / 0.8331 GB, free: 3.883 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.189e-05/0.573, allocations: 7.953 kB / 0.8331 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.5731, allocations: 60 kB / 0.8332 GB, free: 3.816 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.767e-05/0.5732, allocations: 47.94 kB / 0.8332 GB, free: 3.77 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002233/0.5754, allocations: 1.143 MB / 0.8344 GB, free: 2.621 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.586, allocations: 7.942 MB / 0.8421 GB, free: 10.17 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008308/0.5868, allocations: 466 kB / 0.8426 GB, free: 9.711 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.5874, allocations: 323 kB / 0.8429 GB, free: 9.395 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007309/0.5881, allocations: 0.7602 MB / 0.8436 GB, free: 8.469 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.5881, allocations: 43.06 kB / 0.8436 GB, free: 8.418 MB / 0.67 GB Notification: Performance of pre-optimization done (n=60): time 2.295e-06/0.5882, allocations: 0 / 0.8436 GB, free: 8.418 MB / 0.67 GB Notification: Performance of matching and sorting (n=60): time 0.002011/0.5902, allocations: 1.001 MB / 0.8446 GB, free: 7.41 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.5902, allocations: 59.97 kB / 0.8447 GB, free: 7.34 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003176/0.5934, allocations: 2.336 MB / 0.847 GB, free: 4.992 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 8.551e-05/0.5935, allocations: 41.7 kB / 0.847 GB, free: 4.945 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.5946, allocations: 1.167 MB / 0.8481 GB, free: 3.77 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.5949, allocations: 226 kB / 0.8484 GB, free: 3.547 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003913/0.5953, allocations: 258.8 kB / 0.8486 GB, free: 3.285 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5954, allocations: 353.9 kB / 0.8489 GB, free: 2.934 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007121/0.5961, allocations: 365.8 kB / 0.8493 GB, free: 2.574 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.5973, allocations: 0.7501 MB / 0.85 GB, free: 1.668 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.5989, allocations: 0.9824 MB / 0.851 GB, free: 0.5742 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5989, allocations: 0 / 0.851 GB, free: 0.5742 MB / 0.67 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002347/0.6012, allocations: 1.301 MB / 0.8522 GB, free: 15.26 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.6013, allocations: 8 kB / 0.8523 GB, free: 15.25 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.6013, allocations: 15.94 kB / 0.8523 GB, free: 15.24 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.6013, allocations: 12 kB / 0.8523 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.6023, allocations: 251.6 kB / 0.8525 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.6024, allocations: 19.94 kB / 0.8525 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.6037, allocations: 178.9 kB / 0.8527 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.449e-05/0.6038, allocations: 51.98 kB / 0.8528 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001322/0.6051, allocations: 0.7641 MB / 0.8535 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001072/0.6062, allocations: 0.7424 MB / 0.8542 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001525/0.6077, allocations: 0.9448 MB / 0.8552 GB, free: 12 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.851e-06/0.6078, allocations: 4 kB / 0.8552 GB, free: 12 MB / 0.6856 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002271/0.61, allocations: 1.275 MB / 0.8564 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.6101, allocations: 11.98 kB / 0.8564 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.6101, allocations: 8 kB / 0.8564 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.6101, allocations: 12 kB / 0.8564 GB, free: 10.68 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009303/0.611, allocations: 247.6 kB / 0.8567 GB, free: 10.44 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.6111, allocations: 20.47 kB / 0.8567 GB, free: 10.42 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.6124, allocations: 131.4 kB / 0.8568 GB, free: 10.29 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.06e-05/0.6125, allocations: 47.98 kB / 0.8569 GB, free: 10.25 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.0002523/0.6127, allocations: 257.8 kB / 0.8571 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.6131, allocations: 246.4 kB / 0.8573 GB, free: 9.746 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.6148, allocations: 0.8935 MB / 0.8582 GB, free: 8.84 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.6149, allocations: 8 kB / 0.8582 GB, free: 8.832 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.6149, allocations: 4 kB / 0.8582 GB, free: 8.828 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001154/0.616, allocations: 0.6853 MB / 0.8589 GB, free: 8.113 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.6199, allocations: 2.582 MB / 0.8614 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.6199, allocations: 0 / 0.8614 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.6205, allocations: 139.9 kB / 0.8616 GB, free: 5.32 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.6205, allocations: 0 / 0.8616 GB, free: 5.32 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.346e-05/0.6205, allocations: 16 kB / 0.8616 GB, free: 5.305 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.756e-06/0.6206, allocations: 7.938 kB / 0.8616 GB, free: 5.297 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6206, allocations: 0 / 0.8616 GB, free: 5.297 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.6227, allocations: 1.323 MB / 0.8629 GB, free: 3.945 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006422/0.6234, allocations: 431.2 kB / 0.8633 GB, free: 3.504 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.6236, allocations: 12 kB / 0.8633 GB, free: 3.492 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009291/0.6246, allocations: 47.88 kB / 0.8633 GB, free: 3.445 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.6247, allocations: 52.67 kB / 0.8634 GB, free: 3.395 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.48e-05/0.6248, allocations: 27.98 kB / 0.8634 GB, free: 3.367 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002259/0.627, allocations: 1.569 MB / 0.8649 GB, free: 1.793 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.627, allocations: 0 / 0.8649 GB, free: 1.793 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002389/0.6294, allocations: 1.115 MB / 0.866 GB, free: 0.6758 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.2699/0.8993, allocations: 2.537 MB / 0.8685 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002448/0.9018, allocations: 1.359 MB / 0.8698 GB, free: 183.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.9018, allocations: 1.031 kB / 0.8698 GB, free: 183.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005184/0.9023, allocations: 321.8 kB / 0.8701 GB, free: 183.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006005/0.9084, allocations: 1.384 MB / 0.8715 GB, free: 183.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/0.9291, allocations: 14.93 MB / 0.8861 GB, free: 176.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009261/0.9301, allocations: 1.596 MB / 0.8876 GB, free: 175.4 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001981/0.9321, allocations: 0.4903 MB / 0.8881 GB, free: 175.2 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/0.933, allocations: 0.9581 MB / 0.8891 GB, free: 174.3 MB / 0.6856 GB Notification: Performance of SimCode: time 6.31e-07/0.933, allocations: 3.938 kB / 0.8891 GB, free: 174.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08904/1.022, allocations: 64.15 MB / 0.9517 GB, free: 120.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.91, allocations: 11.44 kB / 0.9517 GB, free: 120.1 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)