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.001627/0.001627, allocations: 108 kB / 15.61 MB, free: 152 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.001936/0.001936, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.274/1.274, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8861/0.8861, allocations: 135.1 MB / 425.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 64.14 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1295, allocations: 80.93 MB / 0.5845 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3031/0.4326, allocations: 112.6 MB / 0.6945 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02835/0.4609, allocations: 20.21 MB / 0.7142 GB, free: 15.29 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005606/0.4666, allocations: 106 kB / 0.7143 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004302/0.471, allocations: 1.287 MB / 0.7156 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.481, allocations: 3.672 MB / 0.7191 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007055/0.488, allocations: 3.079 MB / 0.7222 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.008775/0.4968, allocations: 7.187 MB / 0.7292 GB, free: 6.223 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003971/0.5008, allocations: 2.567 MB / 0.7317 GB, free: 4.578 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005958/0.5068, allocations: 2.799 MB / 0.7344 GB, free: 2.934 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003464/0.5103, allocations: 2.132 MB / 0.7365 GB, free: 1.637 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0005767/0.5108, allocations: 254.2 kB / 0.7367 GB, free: 1.637 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.5147, allocations: 1.645 MB / 0.7383 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000803/0.5155, allocations: 0.689 MB / 0.739 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.5177, allocations: 1.508 MB / 0.7405 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00526/0.5229, allocations: 4.35 MB / 0.7447 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.523, allocations: 0 / 0.7447 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.252e-06/0.523, allocations: 4 kB / 0.7447 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.947e-05/0.523, allocations: 0 / 0.7447 GB, free: 9.934 MB / 0.5606 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.005293/0.5283, allocations: 3.234 MB / 0.7479 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5284, allocations: 8.031 kB / 0.7479 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003356/0.5287, allocations: 219.5 kB / 0.7481 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007425/0.5295, allocations: 328.2 kB / 0.7484 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003542/0.5331, allocations: 2.092 MB / 0.7505 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.275e-05/0.5332, allocations: 127 kB / 0.7506 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.5334, allocations: 167.9 kB / 0.7508 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/0.5359, allocations: 1.604 MB / 0.7523 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.536, allocations: 7.844 kB / 0.7523 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.5361, allocations: 67.94 kB / 0.7524 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.372e-05/0.5361, allocations: 40 kB / 0.7524 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.5382, allocations: 1.155 MB / 0.7536 GB, free: 0.6836 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.009737/0.5479, allocations: 7.975 MB / 0.7613 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007537/0.5487, allocations: 471.2 kB / 0.7618 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.5492, allocations: 324.2 kB / 0.7621 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005671/0.5498, allocations: 0.7563 MB / 0.7628 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.5498, allocations: 47.11 kB / 0.7629 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 1.823e-06/0.5498, allocations: 0 / 0.7629 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001816/0.5516, allocations: 0.9804 MB / 0.7638 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.5517, allocations: 63.89 kB / 0.7639 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002801/0.5545, allocations: 2.335 MB / 0.7662 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.451e-05/0.5546, allocations: 49.7 kB / 0.7662 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008824/0.5555, allocations: 1.149 MB / 0.7674 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.5557, allocations: 212.9 kB / 0.7676 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003246/0.556, allocations: 258.6 kB / 0.7678 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5561, allocations: 349.9 kB / 0.7681 GB, free: 1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006303/0.5568, allocations: 357.9 kB / 0.7685 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009022/0.5577, allocations: 0.7463 MB / 0.7692 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.5591, allocations: 0.9862 MB / 0.7702 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.5591, allocations: 8 kB / 0.7702 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002204/0.5613, allocations: 1.295 MB / 0.7714 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.5613, allocations: 12 kB / 0.7715 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.5613, allocations: 8 kB / 0.7715 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.5614, allocations: 12 kB / 0.7715 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009307/0.5623, allocations: 248.2 kB / 0.7717 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.329e-05/0.5623, allocations: 27.92 kB / 0.7717 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.5636, allocations: 166.3 kB / 0.7719 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.5637, allocations: 52.77 kB / 0.7719 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001124/0.5648, allocations: 0.7563 MB / 0.7727 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008591/0.5657, allocations: 0.7388 MB / 0.7734 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001273/0.567, allocations: 0.9523 MB / 0.7743 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/0.567, allocations: 4 kB / 0.7743 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002029/0.569, allocations: 1.262 MB / 0.7756 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.5691, allocations: 13.97 kB / 0.7756 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.5691, allocations: 8 kB / 0.7756 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.5691, allocations: 20.06 kB / 0.7756 GB, free: 8.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008624/0.57, allocations: 243.6 kB / 0.7758 GB, free: 8.531 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.991e-05/0.57, allocations: 25.48 kB / 0.7759 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.5713, allocations: 127.1 kB / 0.776 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.511e-05/0.5714, allocations: 51.98 kB / 0.776 GB, free: 8.332 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.0002223/0.5716, allocations: 251.8 kB / 0.7763 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.572, allocations: 237.4 kB / 0.7765 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.5735, allocations: 0.8779 MB / 0.7774 GB, free: 6.961 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.5735, allocations: 11.98 kB / 0.7774 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5735, allocations: 0 / 0.7774 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009719/0.5745, allocations: 0.6891 MB / 0.7781 GB, free: 6.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.5779, allocations: 2.582 MB / 0.7806 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5779, allocations: 0 / 0.7806 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/0.5784, allocations: 135.7 kB / 0.7807 GB, free: 3.441 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.5785, allocations: 3.938 kB / 0.7807 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.5785, allocations: 24.08 kB / 0.7807 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.5785, allocations: 4 kB / 0.7807 GB, free: 3.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5785, allocations: 7.938 kB / 0.7807 GB, free: 3.402 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.5804, allocations: 1.313 MB / 0.782 GB, free: 2.055 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005679/0.581, allocations: 417.9 kB / 0.7824 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.5812, allocations: 16 kB / 0.7824 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009101/0.5822, allocations: 39.95 kB / 0.7825 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.5823, allocations: 44.44 kB / 0.7825 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.994e-05/0.5823, allocations: 43.97 kB / 0.7826 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001971/0.5843, allocations: 1.562 MB / 0.7841 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5843, allocations: 0 / 0.7841 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002279/0.5866, allocations: 1.111 MB / 0.7852 GB, free: 14.8 MB / 0.6075 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.003636/0.5902, allocations: 2.511 MB / 0.7876 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00264/0.5929, allocations: 1.441 MB / 0.789 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5929, allocations: 11.94 kB / 0.789 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004978/0.5934, allocations: 323 kB / 0.7893 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/0.5989, allocations: 1.387 MB / 0.7907 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02238/0.6212, allocations: 17.37 MB / 0.8077 GB, free: 6.418 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.6223, allocations: 1.59 MB / 0.8092 GB, free: 4.797 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001817/0.6241, allocations: 0.4907 MB / 0.8097 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.6252, allocations: 0.9601 MB / 0.8106 GB, free: 3.34 MB / 0.6231 GB Notification: Performance of SimCode: time 6.71e-07/0.6252, allocations: 0 / 0.8106 GB, free: 3.34 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3052/0.9304, allocations: 65.93 MB / 0.875 GB, free: 210.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.88/9.81, allocations: 4.938 kB / 0.875 GB, free: 210.5 MB / 0.67 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)