Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.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.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",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.0009236/0.0009235, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005391/0.005391, allocations: 170.1 kB / 16.27 MB, free: 6.328 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.254/1.254, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7151/0.7151, allocations: 132.3 MB / 423.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003282, allocations: 12 kB / 0.5041 GB, free: 3.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3438, allocations: 81.57 MB / 0.5838 GB, free: 4.07 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04534/0.3892, allocations: 52.76 MB / 0.6353 GB, free: 11.54 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.406, allocations: 13.75 MB / 0.6487 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.4077, allocations: 63.56 kB / 0.6488 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.4097, allocations: 0.8162 MB / 0.6496 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004138/0.4139, allocations: 2.017 MB / 0.6515 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003738/0.4176, allocations: 1.786 MB / 0.6533 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005395/0.423, allocations: 5.957 MB / 0.6591 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00153/0.4246, allocations: 1.294 MB / 0.6604 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.4268, allocations: 1.505 MB / 0.6618 GB, free: 280 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001246/0.4281, allocations: 1.244 MB / 0.663 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.4282, allocations: 64 kB / 0.6631 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00226/0.4305, allocations: 1.326 MB / 0.6644 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003291/0.4308, allocations: 386.4 kB / 0.6648 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000672/0.4315, allocations: 0.8332 MB / 0.6656 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.4341, allocations: 2.936 MB / 0.6684 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4341, allocations: 4 kB / 0.6685 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4341, allocations: 3.938 kB / 0.6685 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.475e-05/0.4342, allocations: 0 / 0.6685 GB, free: 9.457 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.002741/0.4369, allocations: 1.839 MB / 0.6703 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.437, allocations: 16.02 kB / 0.6703 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.4371, allocations: 152.5 kB / 0.6704 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/0.4387, allocations: 406.2 kB / 0.6708 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0023/0.441, allocations: 1.478 MB / 0.6722 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.4414, allocations: 149.9 kB / 0.6724 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.4415, allocations: 104 kB / 0.6725 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/0.4436, allocations: 1.214 MB / 0.6737 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.4436, allocations: 3.938 kB / 0.6737 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-05/0.4437, allocations: 44 kB / 0.6737 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.4437, allocations: 27.94 kB / 0.6737 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002146/0.4459, allocations: 1.015 MB / 0.6747 GB, free: 2.863 MB / 0.4981 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.006129/0.452, allocations: 5.109 MB / 0.6797 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.4533, allocations: 0.6469 MB / 0.6804 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/0.454, allocations: 310.3 kB / 0.6807 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003532/0.4575, allocations: 3.025 MB / 0.6836 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006882/0.4582, allocations: 349.2 kB / 0.6839 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002229/0.4585, allocations: 71.11 kB / 0.684 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=54): time 1.873e-06/0.4585, allocations: 0 / 0.684 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54): time 0.001808/0.4603, allocations: 0.9111 MB / 0.6849 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.4603, allocations: 59.84 kB / 0.685 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.462, allocations: 1.384 MB / 0.6863 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.4621, allocations: 37.7 kB / 0.6863 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005054/0.4626, allocations: 0.7268 MB / 0.6871 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.4627, allocations: 201.2 kB / 0.6872 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.4628, allocations: 85.66 kB / 0.6873 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.4629, allocations: 345.9 kB / 0.6877 GB, free: 4.914 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007619/0.4637, allocations: 337.8 kB / 0.688 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009596/0.4647, allocations: 0.6882 MB / 0.6886 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.4662, allocations: 1.024 MB / 0.6897 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.503e-06/0.4663, allocations: 4 kB / 0.6897 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00217/0.4684, allocations: 1.206 MB / 0.6908 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.4687, allocations: 439.4 kB / 0.6913 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.4687, allocations: 12 kB / 0.6913 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.4687, allocations: 16 kB / 0.6913 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007846/0.4695, allocations: 243.5 kB / 0.6915 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/0.4695, allocations: 23.92 kB / 0.6915 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.4706, allocations: 144.4 kB / 0.6917 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-05/0.4707, allocations: 55.98 kB / 0.6917 GB, free: 284 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.631e-06/0.4707, allocations: 8 kB / 0.6917 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002/0.4727, allocations: 1.057 MB / 0.6928 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.4727, allocations: 8 kB / 0.6928 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.4727, allocations: 16 kB / 0.6928 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007623/0.4735, allocations: 235.9 kB / 0.693 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.4735, allocations: 27.86 kB / 0.693 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000903/0.4744, allocations: 128.4 kB / 0.6932 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.72e-05/0.4745, allocations: 51.98 kB / 0.6932 GB, free: 14.75 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 (threeWayValveSwitch.switch,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 114 * Array equations: 1 * Algorithm blocks: 1 * 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.0004853/0.475, allocations: 445.3 kB / 0.6936 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.4752, allocations: 146.2 kB / 0.6938 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.4772, allocations: 1.166 MB / 0.6949 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.4773, allocations: 15.94 kB / 0.6949 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4773, allocations: 0 / 0.6949 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00137/0.4787, allocations: 0.9094 MB / 0.6958 GB, free: 12.04 MB / 0.5294 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 postOpt removeSimpleEquations (simulation): time 0.003153/0.4818, allocations: 2.234 MB / 0.698 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4818, allocations: 4 kB / 0.698 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000515/0.4824, allocations: 128 kB / 0.6981 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.4824, allocations: 4 kB / 0.6981 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.314e-05/0.4824, allocations: 23.98 kB / 0.6981 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.4824, allocations: 7.984 kB / 0.6982 GB, free: 9.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.4824, allocations: 7.938 kB / 0.6982 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.4847, allocations: 1.446 MB / 0.6996 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003824/0.4851, allocations: 331 kB / 0.6999 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.4852, allocations: 12 kB / 0.6999 GB, free: 7.738 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007516/0.486, allocations: 91.83 kB / 0.7 GB, free: 7.648 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.4861, allocations: 56.42 kB / 0.7 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.656e-05/0.4862, allocations: 31.97 kB / 0.7001 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001212/0.4874, allocations: 0.9367 MB / 0.701 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.643e-06/0.4874, allocations: 0 / 0.701 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001835/0.4892, allocations: 0.807 MB / 0.7018 GB, free: 5.816 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (threeWayValveSwitch.vol.dynBal.U,T_mix.T,T_leg0.T,T_leg1.T) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * 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.003279/0.4925, allocations: 2.417 MB / 0.7041 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002665/0.4952, allocations: 1.5 MB / 0.7056 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4952, allocations: 8.312 kB / 0.7056 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007015/0.4959, allocations: 407.1 kB / 0.706 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/0.4992, allocations: 0.7493 MB / 0.7067 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.5161, allocations: 11.83 MB / 0.7183 GB, free: 4.211 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000721/0.5168, allocations: 1.27 MB / 0.7195 GB, free: 2.914 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001437/0.5182, allocations: 408.9 kB / 0.7199 GB, free: 2.531 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006939/0.5189, allocations: 0.6085 MB / 0.7205 GB, free: 1.922 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/0.5189, allocations: 0 / 0.7205 GB, free: 1.922 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.13/1.649, allocations: 42.05 MB / 0.7616 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/1.649, allocations: 253.1 kB / 0.7618 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.928/4.577, allocations: 0 / 0.7618 GB, free: 8.215 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)