Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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: translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, 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.01042/0.01042, allocations: 169 kB / 16.26 MB, free: 6.652 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.508/1.508, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.066/1.066, allocations: 135.3 MB / 426.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003717, allocations: 12 kB / 0.5076 GB, free: 4.691 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1898, allocations: 82.31 MB / 0.588 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.4695/0.6593, allocations: 52.73 MB / 0.6395 GB, free: 22.5 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01954/0.6789, allocations: 13.76 MB / 0.6529 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003717/0.6827, allocations: 59.69 kB / 0.653 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.6862, allocations: 0.82 MB / 0.6538 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007429/0.6937, allocations: 2.007 MB / 0.6557 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00571/0.6994, allocations: 1.806 MB / 0.6575 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008993/0.7084, allocations: 5.945 MB / 0.6633 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003154/0.7116, allocations: 1.293 MB / 0.6646 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004962/0.7166, allocations: 1.514 MB / 0.6661 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003449/0.7201, allocations: 1.238 MB / 0.6673 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006436/0.7207, allocations: 64.38 kB / 0.6673 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005471/0.7262, allocations: 1.32 MB / 0.6686 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009932/0.7273, allocations: 381.5 kB / 0.669 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00188/0.7291, allocations: 0.8404 MB / 0.6698 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006315/0.7355, allocations: 2.935 MB / 0.6727 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.7355, allocations: 1.531 kB / 0.6727 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.198e-06/0.7355, allocations: 0.7031 kB / 0.6727 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.121e-05/0.7356, allocations: 0 / 0.6727 GB, free: 4.246 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.005175/0.7408, allocations: 1.854 MB / 0.6745 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.7409, allocations: 9.625 kB / 0.6745 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.7431, allocations: 397 kB / 0.6749 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003637/0.7467, allocations: 1.474 MB / 0.6763 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004215/0.7472, allocations: 154 kB / 0.6764 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002002/0.7474, allocations: 107.8 kB / 0.6766 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.7503, allocations: 1.213 MB / 0.6777 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/0.7503, allocations: 1.375 kB / 0.6777 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.7504, allocations: 42.38 kB / 0.6778 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/0.7504, allocations: 24.75 kB / 0.6778 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002623/0.7531, allocations: 1.016 MB / 0.6788 GB, free: 1.086 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.009668/0.7627, allocations: 5.125 MB / 0.6838 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.7644, allocations: 0.626 MB / 0.6844 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000812/0.7652, allocations: 316.4 kB / 0.6847 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006433/0.7716, allocations: 3.018 MB / 0.6877 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009357/0.7726, allocations: 359 kB / 0.688 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007447/0.7734, allocations: 66.12 kB / 0.6881 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=54): time 3.897e-06/0.7734, allocations: 1.094 kB / 0.6881 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54): time 0.002558/0.776, allocations: 0.9061 MB / 0.6889 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.776, allocations: 58.64 kB / 0.689 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/0.7789, allocations: 1.388 MB / 0.6904 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.779, allocations: 39.05 kB / 0.6904 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000883/0.7799, allocations: 0.7288 MB / 0.6911 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.7802, allocations: 199.2 kB / 0.6913 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.7804, allocations: 85.64 kB / 0.6914 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002157/0.7806, allocations: 342.3 kB / 0.6917 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009762/0.7816, allocations: 348.8 kB / 0.692 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.783, allocations: 0.6893 MB / 0.6927 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.785, allocations: 1.016 MB / 0.6937 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.785, allocations: 6.188 kB / 0.6937 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003339/0.7883, allocations: 1.205 MB / 0.6949 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004533/0.7888, allocations: 438.1 kB / 0.6953 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/0.7889, allocations: 15.56 kB / 0.6953 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.885e-05/0.7889, allocations: 14.88 kB / 0.6953 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009677/0.7899, allocations: 238 kB / 0.6956 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.224e-05/0.7899, allocations: 29.08 kB / 0.6956 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.7917, allocations: 143.8 kB / 0.6957 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.7918, allocations: 48.95 kB / 0.6958 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/0.7919, allocations: 4.312 kB / 0.6958 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002543/0.7944, allocations: 1.06 MB / 0.6968 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.7944, allocations: 10.94 kB / 0.6968 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.7945, allocations: 15.19 kB / 0.6968 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008889/0.7954, allocations: 244 kB / 0.6971 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-05/0.7954, allocations: 19.53 kB / 0.6971 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.7971, allocations: 131.7 kB / 0.6972 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.7973, allocations: 53.33 kB / 0.6973 GB, free: 5.492 MB / 0.5137 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.00123/0.7985, allocations: 449.7 kB / 0.6977 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.7988, allocations: 147.1 kB / 0.6978 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.8017, allocations: 1.157 MB / 0.699 GB, free: 4.457 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.8018, allocations: 12.36 kB / 0.699 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.8018, allocations: 3.938 kB / 0.699 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001983/0.8038, allocations: 0.9194 MB / 0.6999 GB, free: 3.863 MB / 0.5137 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.005485/0.8093, allocations: 2.231 MB / 0.7021 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.8093, allocations: 0 / 0.7021 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005795/0.8099, allocations: 137 kB / 0.7022 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.8099, allocations: 4.656 kB / 0.7022 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.81, allocations: 19.48 kB / 0.7022 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.81, allocations: 7.641 kB / 0.7022 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.81, allocations: 0 / 0.7022 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.8133, allocations: 1.453 MB / 0.7036 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008961/0.8142, allocations: 332.5 kB / 0.704 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.8144, allocations: 20.11 kB / 0.704 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008724/0.8153, allocations: 85.28 kB / 0.7041 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.8155, allocations: 58.61 kB / 0.7041 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.8156, allocations: 31.22 kB / 0.7041 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001822/0.8174, allocations: 0.9368 MB / 0.7051 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.8174, allocations: 1.344 kB / 0.7051 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003429/0.8208, allocations: 0.8029 MB / 0.7058 GB, free: 424 kB / 0.5137 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.001672/0.8225, allocations: 0.5203 MB / 0.7063 GB, free: 140 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003357/0.8259, allocations: 1.499 MB / 0.7078 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8259, allocations: 4.062 kB / 0.7078 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.8267, allocations: 412 kB / 0.7082 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004129/0.8308, allocations: 0.7434 MB / 0.7089 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006525/0.8374, allocations: 3.285 MB / 0.7121 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.8387, allocations: 1.266 MB / 0.7134 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002192/0.8409, allocations: 416.8 kB / 0.7138 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/0.8414, allocations: 135.4 kB / 0.7139 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.8414, allocations: 0 / 0.7139 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of Templates: time 0.06215/0.9035, allocations: 30.48 MB / 0.7437 GB, free: 11.79 MB / 0.5606 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)