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.007658/0.007658, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001793/0.001793, allocations: 190 kB / 16.67 MB, free: 5.48 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.222/1.222, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.741/0.741, allocations: 132.2 MB / 422.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 64.59 kB / 0.5809 GB, free: 23.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1352, allocations: 80.2 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4219/0.5571, allocations: 112.6 MB / 0.7692 GB, free: 24.33 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02638/0.5835, allocations: 20.22 MB / 0.7889 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005619/0.5892, allocations: 107.6 kB / 0.789 GB, free: 22.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003701/0.593, allocations: 1.301 MB / 0.7903 GB, free: 22.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.6036, allocations: 3.866 MB / 0.7941 GB, free: 20.64 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007139/0.6107, allocations: 3.119 MB / 0.7971 GB, free: 19.36 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008993/0.6198, allocations: 7.225 MB / 0.8042 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003562/0.6233, allocations: 2.585 MB / 0.8067 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00593/0.6293, allocations: 2.888 MB / 0.8095 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003379/0.6327, allocations: 2.131 MB / 0.8116 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007556/0.6334, allocations: 257 kB / 0.8119 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/0.6376, allocations: 1.643 MB / 0.8135 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005354/0.6382, allocations: 0.6931 MB / 0.8141 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.6397, allocations: 1.512 MB / 0.8156 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0049/0.6446, allocations: 4.415 MB / 0.8199 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6446, allocations: 0 / 0.8199 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6446, allocations: 0 / 0.8199 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.083e-05/0.6446, allocations: 0 / 0.8199 GB, free: 6.449 MB / 0.5762 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.004181/0.6488, allocations: 3.325 MB / 0.8232 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.6489, allocations: 10.16 kB / 0.8232 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001914/0.6491, allocations: 223.6 kB / 0.8234 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006495/0.6497, allocations: 341 kB / 0.8237 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002803/0.6525, allocations: 2.225 MB / 0.8259 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-05/0.6526, allocations: 123 kB / 0.826 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.6528, allocations: 172 kB / 0.8262 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.6549, allocations: 1.613 MB / 0.8277 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.495e-05/0.655, allocations: 0 / 0.8277 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.6551, allocations: 67.94 kB / 0.8278 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.272e-05/0.6552, allocations: 43.88 kB / 0.8279 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.657, allocations: 1.147 MB / 0.829 GB, free: 14.53 MB / 0.5919 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.009214/0.6663, allocations: 7.926 MB / 0.8367 GB, free: 6.164 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007275/0.667, allocations: 482 kB / 0.8372 GB, free: 5.684 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.6675, allocations: 322.9 kB / 0.8375 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005682/0.6681, allocations: 0.7546 MB / 0.8382 GB, free: 4.453 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.6681, allocations: 43.12 kB / 0.8383 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 1.954e-06/0.6681, allocations: 0 / 0.8383 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.001887/0.67, allocations: 1.005 MB / 0.8392 GB, free: 3.391 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.67, allocations: 59.97 kB / 0.8393 GB, free: 3.316 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002744/0.6728, allocations: 2.332 MB / 0.8416 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.664e-05/0.6729, allocations: 45.7 kB / 0.8416 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000881/0.6738, allocations: 1.166 MB / 0.8428 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.674, allocations: 221.6 kB / 0.843 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003303/0.6743, allocations: 262.7 kB / 0.8432 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6744, allocations: 349.9 kB / 0.8436 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005954/0.675, allocations: 361.7 kB / 0.8439 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008637/0.6759, allocations: 0.7463 MB / 0.8446 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.6772, allocations: 0.9824 MB / 0.8456 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.6772, allocations: 8 kB / 0.8456 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002058/0.6793, allocations: 1.304 MB / 0.8469 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.6793, allocations: 8 kB / 0.8469 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.6794, allocations: 11.94 kB / 0.8469 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.6794, allocations: 12.69 kB / 0.8469 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009262/0.6803, allocations: 259.6 kB / 0.8471 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.6803, allocations: 15.94 kB / 0.8472 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.6817, allocations: 182.7 kB / 0.8473 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.33e-05/0.6818, allocations: 47.98 kB / 0.8474 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001155/0.683, allocations: 0.7602 MB / 0.8481 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008582/0.6839, allocations: 0.7424 MB / 0.8488 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001198/0.6851, allocations: 0.9486 MB / 0.8498 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.789e-06/0.6851, allocations: 3.938 kB / 0.8498 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001886/0.687, allocations: 1.264 MB / 0.851 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.687, allocations: 11.98 kB / 0.851 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.687, allocations: 12.12 kB / 0.851 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.687, allocations: 16 kB / 0.851 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/0.6879, allocations: 259.6 kB / 0.8513 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.6879, allocations: 15.94 kB / 0.8513 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.6893, allocations: 123.4 kB / 0.8514 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.201e-05/0.6894, allocations: 55.98 kB / 0.8515 GB, free: 6.254 MB / 0.6075 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.0002507/0.6896, allocations: 243.9 kB / 0.8517 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/0.69, allocations: 250.3 kB / 0.852 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.6915, allocations: 0.8849 MB / 0.8528 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.6915, allocations: 7.938 kB / 0.8528 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.6915, allocations: 0 / 0.8528 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009224/0.6924, allocations: 0.6853 MB / 0.8535 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.6959, allocations: 2.591 MB / 0.856 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.696, allocations: 0 / 0.856 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.6964, allocations: 123.9 kB / 0.8561 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.6965, allocations: 4 kB / 0.8561 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.6965, allocations: 16 kB / 0.8562 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.6965, allocations: 0 / 0.8562 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6965, allocations: 11.88 kB / 0.8562 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.6983, allocations: 1.323 MB / 0.8575 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006529/0.699, allocations: 435.1 kB / 0.8579 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.6992, allocations: 12 kB / 0.8579 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.7001, allocations: 55.81 kB / 0.8579 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.074e-05/0.7002, allocations: 48.44 kB / 0.858 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.7003, allocations: 31.92 kB / 0.858 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001884/0.7022, allocations: 1.566 MB / 0.8596 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7022, allocations: 0 / 0.8596 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002405/0.7046, allocations: 1.119 MB / 0.8606 GB, free: 12.71 MB / 0.6231 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.003459/0.708, allocations: 2.53 MB / 0.8631 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002236/0.7103, allocations: 1.367 MB / 0.8644 GB, free: 8.984 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.7103, allocations: 0 / 0.8644 GB, free: 8.984 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.7108, allocations: 319.3 kB / 0.8648 GB, free: 8.676 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005017/0.7158, allocations: 1.394 MB / 0.8661 GB, free: 7.34 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/0.7353, allocations: 14.94 MB / 0.8807 GB, free: 7.961 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.7364, allocations: 1.586 MB / 0.8822 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001826/0.7383, allocations: 0.4975 MB / 0.8827 GB, free: 5.844 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/0.7394, allocations: 0.96 MB / 0.8837 GB, free: 4.883 MB / 0.6387 GB Notification: Performance of SimCode: time 1.041e-06/0.7394, allocations: 0 / 0.8837 GB, free: 4.883 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1046/0.844, allocations: 64.15 MB / 0.9463 GB, free: 5.238 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.55, allocations: 14.02 kB / 0.9463 GB, free: 5.227 MB / 0.7012 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)