Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IDEAS_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.001053/0.001053, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7655/0.7655, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 65.06 kB / 0.5019 GB, free: 8.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1377, allocations: 80.2 MB / 0.5802 GB, free: 8.672 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3421/0.4798, allocations: 112.6 MB / 0.6902 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02816/0.508, allocations: 20.22 MB / 0.7099 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003934/0.512, allocations: 106.5 kB / 0.71 GB, free: 5.598 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003222/0.5152, allocations: 1.279 MB / 0.7113 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.009142/0.5244, allocations: 3.675 MB / 0.7149 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.007045/0.5315, allocations: 3.079 MB / 0.7179 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008112/0.5396, allocations: 7.185 MB / 0.7249 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00364/0.5433, allocations: 2.562 MB / 0.7274 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005524/0.5488, allocations: 2.803 MB / 0.7301 GB, free: 9.621 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003354/0.5522, allocations: 2.126 MB / 0.7322 GB, free: 8.332 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006015/0.5528, allocations: 254 kB / 0.7325 GB, free: 8.332 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003874/0.5567, allocations: 1.651 MB / 0.7341 GB, free: 7.512 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0008455/0.5575, allocations: 0.6851 MB / 0.7347 GB, free: 6.875 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00214/0.5597, allocations: 1.512 MB / 0.7362 GB, free: 5.355 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004775/0.5644, allocations: 4.342 MB / 0.7405 GB, free: 1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.5645, allocations: 3.938 kB / 0.7405 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5645, allocations: 3.938 kB / 0.7405 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.626e-05/0.5645, allocations: 4 kB / 0.7405 GB, free: 0.9883 MB / 0.545 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.004488/0.569, allocations: 3.233 MB / 0.7436 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.569, allocations: 12.03 kB / 0.7436 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002372/0.5693, allocations: 219.5 kB / 0.7439 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006622/0.5699, allocations: 320.3 kB / 0.7442 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002982/0.5729, allocations: 2.096 MB / 0.7462 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.16e-05/0.573, allocations: 127 kB / 0.7463 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.5733, allocations: 167.9 kB / 0.7465 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/0.5757, allocations: 1.612 MB / 0.7481 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.5758, allocations: 3.938 kB / 0.7481 GB, free: 9 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.5759, allocations: 67.94 kB / 0.7481 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.733e-05/0.576, allocations: 40 kB / 0.7482 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.578, allocations: 1.143 MB / 0.7493 GB, free: 7.746 MB / 0.5606 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.009639/0.5876, allocations: 7.982 MB / 0.7571 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007735/0.5884, allocations: 474 kB / 0.7575 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005166/0.589, allocations: 327 kB / 0.7578 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006364/0.5896, allocations: 0.7523 MB / 0.7586 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.5896, allocations: 47.12 kB / 0.7586 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 1.974e-06/0.5897, allocations: 0 / 0.7586 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001911/0.5916, allocations: 0.988 MB / 0.7596 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.5916, allocations: 59.97 kB / 0.7596 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/0.5943, allocations: 2.332 MB / 0.7619 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.676e-05/0.5944, allocations: 49.7 kB / 0.762 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008371/0.5952, allocations: 1.157 MB / 0.7631 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.5954, allocations: 216.9 kB / 0.7633 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/0.5957, allocations: 250.7 kB / 0.7635 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5959, allocations: 353.9 kB / 0.7639 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006286/0.5965, allocations: 357.9 kB / 0.7642 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009121/0.5974, allocations: 0.7463 MB / 0.7649 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.5988, allocations: 0.9823 MB / 0.7659 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.5988, allocations: 4 kB / 0.7659 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002096/0.6009, allocations: 1.299 MB / 0.7672 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.6009, allocations: 8 kB / 0.7672 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.6009, allocations: 8 kB / 0.7672 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.601, allocations: 16 kB / 0.7672 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009285/0.6019, allocations: 248.2 kB / 0.7674 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.997e-05/0.6019, allocations: 19.92 kB / 0.7675 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.6032, allocations: 178.2 kB / 0.7676 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.418e-05/0.6033, allocations: 51.98 kB / 0.7677 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001177/0.6045, allocations: 0.7602 MB / 0.7684 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009679/0.6054, allocations: 0.7315 MB / 0.7691 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001386/0.6068, allocations: 0.9562 MB / 0.7701 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.39e-06/0.6069, allocations: 7.938 kB / 0.7701 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002011/0.6089, allocations: 1.257 MB / 0.7713 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.6089, allocations: 9 kB / 0.7713 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.6089, allocations: 12 kB / 0.7713 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.6089, allocations: 16 kB / 0.7713 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008735/0.6098, allocations: 251.6 kB / 0.7716 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.6098, allocations: 19.97 kB / 0.7716 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.6111, allocations: 131.3 kB / 0.7717 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.426e-05/0.6112, allocations: 51.98 kB / 0.7718 GB, free: 15.36 MB / 0.5919 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.0002224/0.6114, allocations: 255.9 kB / 0.772 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.6118, allocations: 233 kB / 0.7722 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.6134, allocations: 0.8892 MB / 0.7731 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6134, allocations: 4 kB / 0.7731 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.6134, allocations: 4 kB / 0.7731 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001027/0.6144, allocations: 0.6853 MB / 0.7738 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.618, allocations: 2.582 MB / 0.7763 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.618, allocations: 0 / 0.7763 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/0.6185, allocations: 127.9 kB / 0.7764 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.83e-06/0.6185, allocations: 4 kB / 0.7764 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.6186, allocations: 19.98 kB / 0.7765 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.6186, allocations: 8.094 kB / 0.7765 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6186, allocations: 3.938 kB / 0.7765 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.6205, allocations: 1.317 MB / 0.7778 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/0.6211, allocations: 414 kB / 0.7782 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.6213, allocations: 15.98 kB / 0.7782 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009424/0.6223, allocations: 43.94 kB / 0.7782 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.111e-05/0.6224, allocations: 44.44 kB / 0.7783 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-05/0.6224, allocations: 35.97 kB / 0.7783 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002048/0.6245, allocations: 1.562 MB / 0.7798 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6245, allocations: 0 / 0.7798 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002297/0.6268, allocations: 1.118 MB / 0.7809 GB, free: 5.848 MB / 0.5919 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.003695/0.6305, allocations: 2.514 MB / 0.7834 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002536/0.633, allocations: 1.441 MB / 0.7848 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6331, allocations: 128 / 0.7848 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004949/0.6336, allocations: 331 kB / 0.7851 GB, free: 1.707 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005308/0.6389, allocations: 1.391 MB / 0.7864 GB, free: 436 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02176/0.6607, allocations: 17.37 MB / 0.8034 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.6618, allocations: 1.593 MB / 0.805 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001872/0.6637, allocations: 0.4934 MB / 0.8054 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/0.6648, allocations: 0.9601 MB / 0.8064 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of SimCode: time 6.82e-07/0.6648, allocations: 0 / 0.8064 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3034/0.9683, allocations: 65.89 MB / 0.8707 GB, free: 201.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.679/9.647, allocations: 4.328 kB / 0.8707 GB, free: 201.7 MB / 0.6544 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)