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.0009775/0.0009776, 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.0009522/0.0009522, allocations: 194.1 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.235/1.235, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7264/0.7264, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.94 kB / 0.5019 GB, free: 8.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1272, allocations: 80.2 MB / 0.5802 GB, free: 8.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.2937/0.4209, allocations: 112.6 MB / 0.6902 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02744/0.4484, allocations: 20.21 MB / 0.7099 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003817/0.4522, allocations: 109.2 kB / 0.71 GB, free: 5.523 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003657/0.4559, allocations: 1.284 MB / 0.7113 GB, free: 4.723 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00996/0.4659, allocations: 3.679 MB / 0.7149 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.007398/0.4734, allocations: 3.076 MB / 0.7179 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008951/0.4823, allocations: 7.179 MB / 0.7249 GB, free: 12.88 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003837/0.4862, allocations: 2.574 MB / 0.7274 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005774/0.492, allocations: 2.796 MB / 0.7301 GB, free: 9.582 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003596/0.4956, allocations: 2.131 MB / 0.7322 GB, free: 8.289 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006413/0.4962, allocations: 253.9 kB / 0.7325 GB, free: 8.289 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.5003, allocations: 1.639 MB / 0.7341 GB, free: 7.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0008663/0.5012, allocations: 0.6962 MB / 0.7348 GB, free: 6.852 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.5035, allocations: 1.512 MB / 0.7362 GB, free: 5.332 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005398/0.5089, allocations: 4.346 MB / 0.7405 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5089, allocations: 0 / 0.7405 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5089, allocations: 0 / 0.7405 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.00011/0.509, allocations: 0 / 0.7405 GB, free: 0.9727 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.005451/0.5145, allocations: 3.224 MB / 0.7436 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.5145, allocations: 8.031 kB / 0.7436 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002865/0.5148, allocations: 223.5 kB / 0.7438 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007677/0.5156, allocations: 324.3 kB / 0.7441 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003269/0.5189, allocations: 2.088 MB / 0.7462 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.434e-05/0.519, allocations: 134.9 kB / 0.7463 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.5192, allocations: 171.8 kB / 0.7465 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002503/0.5217, allocations: 1.62 MB / 0.7481 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.5217, allocations: 4 kB / 0.7481 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.5219, allocations: 63.94 kB / 0.7481 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.976e-05/0.5219, allocations: 40 kB / 0.7482 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.5239, allocations: 1.147 MB / 0.7493 GB, free: 7.727 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.00952/0.5335, allocations: 7.978 MB / 0.7571 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007467/0.5342, allocations: 482 kB / 0.7575 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.5347, allocations: 319 kB / 0.7578 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000571/0.5353, allocations: 0.7524 MB / 0.7586 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.5353, allocations: 43.06 kB / 0.7586 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 1.853e-06/0.5353, allocations: 0 / 0.7586 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001834/0.5372, allocations: 0.992 MB / 0.7596 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.5372, allocations: 59.97 kB / 0.7596 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.5401, allocations: 2.332 MB / 0.7619 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/0.5402, allocations: 49.7 kB / 0.762 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008899/0.5411, allocations: 1.149 MB / 0.7631 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.5412, allocations: 208.9 kB / 0.7633 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/0.5416, allocations: 262.6 kB / 0.7635 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.5417, allocations: 349.9 kB / 0.7639 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006342/0.5424, allocations: 353.9 kB / 0.7642 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009121/0.5433, allocations: 0.754 MB / 0.7649 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.5447, allocations: 0.9862 MB / 0.7659 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.5447, allocations: 4 kB / 0.7659 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002149/0.5468, allocations: 1.291 MB / 0.7672 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5469, allocations: 9.562 kB / 0.7672 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.5469, allocations: 12 kB / 0.7672 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.5469, allocations: 12 kB / 0.7672 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009279/0.5478, allocations: 255.6 kB / 0.7675 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.5479, allocations: 15.94 kB / 0.7675 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.5492, allocations: 178.7 kB / 0.7676 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.528e-05/0.5493, allocations: 47.98 kB / 0.7677 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001123/0.5504, allocations: 0.7602 MB / 0.7684 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008628/0.5513, allocations: 0.7387 MB / 0.7691 GB, free: 2.18 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001277/0.5526, allocations: 0.9484 MB / 0.7701 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.078e-06/0.5526, allocations: 0 / 0.7701 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002023/0.5546, allocations: 1.269 MB / 0.7713 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.5546, allocations: 8 kB / 0.7713 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.5546, allocations: 11.94 kB / 0.7713 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.5547, allocations: 16 kB / 0.7713 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008654/0.5555, allocations: 256.6 kB / 0.7716 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.5556, allocations: 19.94 kB / 0.7716 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.5569, allocations: 123.2 kB / 0.7717 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.557, allocations: 51.98 kB / 0.7718 GB, free: 15.35 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.0002074/0.5572, allocations: 243.9 kB / 0.772 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.5575, allocations: 241 kB / 0.7722 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.559, allocations: 0.893 MB / 0.7731 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.5591, allocations: 4 kB / 0.7731 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5591, allocations: 0 / 0.7731 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009822/0.5601, allocations: 0.6853 MB / 0.7738 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.5634, allocations: 2.582 MB / 0.7763 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5634, allocations: 4 kB / 0.7763 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005022/0.5639, allocations: 127.8 kB / 0.7764 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.564, allocations: 4 kB / 0.7764 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.564, allocations: 12 kB / 0.7764 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.564, allocations: 7.938 kB / 0.7765 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.564, allocations: 7.938 kB / 0.7765 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.5659, allocations: 1.321 MB / 0.7778 GB, free: 9.086 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.5665, allocations: 410 kB / 0.7781 GB, free: 8.664 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/0.5667, allocations: 20 kB / 0.7782 GB, free: 8.645 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009255/0.5677, allocations: 43.94 kB / 0.7782 GB, free: 8.602 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.87e-05/0.5678, allocations: 48.44 kB / 0.7783 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.5678, allocations: 27.98 kB / 0.7783 GB, free: 8.527 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002018/0.5699, allocations: 1.566 MB / 0.7798 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5699, allocations: 0 / 0.7798 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002245/0.5721, allocations: 1.122 MB / 0.7809 GB, free: 5.832 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.003546/0.5757, allocations: 2.502 MB / 0.7833 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00253/0.5782, allocations: 1.452 MB / 0.7848 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5782, allocations: 0 / 0.7848 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005051/0.5787, allocations: 323.5 kB / 0.7851 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005222/0.584, allocations: 1.387 MB / 0.7864 GB, free: 428 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/0.6053, allocations: 17.38 MB / 0.8034 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.6064, allocations: 1.593 MB / 0.805 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001744/0.6082, allocations: 0.4897 MB / 0.8054 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/0.6093, allocations: 0.9639 MB / 0.8064 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of SimCode: time 4.31e-07/0.6093, allocations: 3.938 kB / 0.8064 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5662/1.176, allocations: 65.9 MB / 0.8707 GB, free: 201.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.991/11.17, allocations: 6.922 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)