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.0009573/0.0009573, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.0009666/0.0009666, allocations: 199.5 kB / 16.14 MB, free: 6.746 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.205/1.205, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.83/0.83, allocations: 135.1 MB / 425.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 68.36 kB / 0.5048 GB, free: 5.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1298, allocations: 80.91 MB / 0.5838 GB, free: 4.914 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.2957/0.4255, allocations: 111.9 MB / 0.6931 GB, free: 180 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02611/0.4516, allocations: 20.31 MB / 0.7129 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00348/0.4551, allocations: 96.22 kB / 0.713 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003277/0.4584, allocations: 1.051 MB / 0.714 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008557/0.467, allocations: 3.37 MB / 0.7173 GB, free: 15.07 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006563/0.4736, allocations: 2.838 MB / 0.7201 GB, free: 13.47 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00979/0.4834, allocations: 9.526 MB / 0.7294 GB, free: 8.582 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00297/0.4864, allocations: 2.136 MB / 0.7315 GB, free: 7.238 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004337/0.4907, allocations: 2.395 MB / 0.7338 GB, free: 5.906 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003243/0.494, allocations: 2.13 MB / 0.7359 GB, free: 3.934 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004448/0.4944, allocations: 120 kB / 0.736 GB, free: 3.816 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.4978, allocations: 1.474 MB / 0.7375 GB, free: 2.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0006758/0.4985, allocations: 0.5678 MB / 0.738 GB, free: 1.77 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.5004, allocations: 1.375 MB / 0.7394 GB, free: 396 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.5048, allocations: 4.252 MB / 0.7435 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5048, allocations: 0 / 0.7435 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.02e-07/0.5048, allocations: 0 / 0.7435 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.14e-05/0.5048, allocations: 0 / 0.7435 GB, free: 12.12 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.004173/0.509, allocations: 3.223 MB / 0.7467 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.509, allocations: 8.031 kB / 0.7467 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.5093, allocations: 219.5 kB / 0.7469 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000612/0.5099, allocations: 336.2 kB / 0.7472 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/0.5127, allocations: 2.139 MB / 0.7493 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.5128, allocations: 127 kB / 0.7494 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.513, allocations: 168 kB / 0.7496 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.5153, allocations: 1.612 MB / 0.7511 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.5153, allocations: 3.938 kB / 0.7511 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.5155, allocations: 67.94 kB / 0.7512 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.859e-05/0.5155, allocations: 36 kB / 0.7512 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.5173, allocations: 1.147 MB / 0.7524 GB, free: 2.836 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.008199/0.5255, allocations: 7.893 MB / 0.7601 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006919/0.5262, allocations: 478.5 kB / 0.7605 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004455/0.5267, allocations: 327 kB / 0.7608 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005204/0.5272, allocations: 0.7524 MB / 0.7616 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.5273, allocations: 43.12 kB / 0.7616 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 1.693e-06/0.5273, allocations: 0 / 0.7616 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001616/0.5289, allocations: 0.9919 MB / 0.7626 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.5289, allocations: 63.91 kB / 0.7626 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/0.5314, allocations: 2.308 MB / 0.7649 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/0.5315, allocations: 45.7 kB / 0.7649 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008086/0.5323, allocations: 1.149 MB / 0.7661 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.5325, allocations: 220.9 kB / 0.7663 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.5328, allocations: 254.6 kB / 0.7665 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5329, allocations: 345.9 kB / 0.7668 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005982/0.5335, allocations: 365.9 kB / 0.7672 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008529/0.5343, allocations: 0.7424 MB / 0.7679 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.5356, allocations: 0.9863 MB / 0.7689 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.5357, allocations: 0 / 0.7689 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001929/0.5376, allocations: 1.299 MB / 0.7701 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5376, allocations: 8 kB / 0.7702 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.5376, allocations: 8 kB / 0.7702 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.5377, allocations: 16 kB / 0.7702 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009046/0.5386, allocations: 251.6 kB / 0.7704 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.5386, allocations: 23.92 kB / 0.7704 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.54, allocations: 246.3 kB / 0.7707 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-05/0.54, allocations: 51.98 kB / 0.7707 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001099/0.5411, allocations: 0.7602 MB / 0.7715 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008307/0.542, allocations: 0.7404 MB / 0.7722 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001231/0.5432, allocations: 0.9483 MB / 0.7731 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.477e-06/0.5432, allocations: 0 / 0.7731 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001873/0.5451, allocations: 1.265 MB / 0.7744 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.5451, allocations: 11.98 kB / 0.7744 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.5452, allocations: 8 kB / 0.7744 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.5452, allocations: 16 kB / 0.7744 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008413/0.546, allocations: 248.3 kB / 0.7746 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.546, allocations: 19.94 kB / 0.7746 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.5474, allocations: 183.1 kB / 0.7748 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.023e-05/0.5475, allocations: 59.98 kB / 0.7749 GB, free: 10.45 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.0001961/0.5477, allocations: 251.7 kB / 0.7751 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002959/0.548, allocations: 237.1 kB / 0.7753 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.5495, allocations: 0.8857 MB / 0.7762 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.5495, allocations: 8.281 kB / 0.7762 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5495, allocations: 0 / 0.7762 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009237/0.5504, allocations: 0.6891 MB / 0.7769 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003244/0.5537, allocations: 2.57 MB / 0.7794 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.5537, allocations: 4 kB / 0.7794 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/0.5542, allocations: 127.8 kB / 0.7795 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.5542, allocations: 4 kB / 0.7795 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.5542, allocations: 15.98 kB / 0.7795 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.5542, allocations: 4 kB / 0.7795 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5542, allocations: 3.938 kB / 0.7795 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.556, allocations: 1.313 MB / 0.7808 GB, free: 4.195 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005384/0.5566, allocations: 413.9 kB / 0.7812 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.5568, allocations: 15.98 kB / 0.7812 GB, free: 3.754 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.5578, allocations: 115.7 kB / 0.7814 GB, free: 3.641 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.5579, allocations: 48.44 kB / 0.7814 GB, free: 3.594 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.814e-05/0.558, allocations: 31.97 kB / 0.7814 GB, free: 3.562 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001865/0.5599, allocations: 1.546 MB / 0.7829 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.563e-06/0.5599, allocations: 0 / 0.7829 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002087/0.562, allocations: 1.103 MB / 0.784 GB, free: 0.9062 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.003346/0.5653, allocations: 2.505 MB / 0.7865 GB, free: 14.51 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002066/0.5674, allocations: 1.351 MB / 0.7878 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5674, allocations: 4 kB / 0.7878 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.5679, allocations: 327.4 kB / 0.7881 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005332/0.5732, allocations: 1.382 MB / 0.7894 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02671/0.5999, allocations: 18.06 MB / 0.8071 GB, free: 7.906 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.601, allocations: 1.586 MB / 0.8086 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001667/0.6027, allocations: 0.4984 MB / 0.8091 GB, free: 5.789 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.6037, allocations: 0.964 MB / 0.8101 GB, free: 4.824 MB / 0.6231 GB Notification: Performance of SimCode: time 4.81e-07/0.6038, allocations: 0 / 0.8101 GB, free: 4.824 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2784/0.8822, allocations: 64.15 MB / 0.8727 GB, free: 207.5 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001279/0.8823, allocations: 246.1 kB / 0.8729 GB, free: 207.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.152/4.035, allocations: 4 kB / 0.8729 GB, free: 207.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)