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: translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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_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.0009956/0.0009957, allocations: 110.9 kB / 16.41 MB, free: 6.523 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.001027/0.001027, allocations: 190.7 kB / 17.35 MB, free: 5.727 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.329/1.329, allocations: 222.9 MB / 241.1 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.7925/0.7925, allocations: 132.2 MB / 423.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 69.55 kB / 0.582 GB, free: 23.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1692, allocations: 80.21 MB / 0.6604 GB, free: 10.25 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pumpEmission.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.06651/0.2358, allocations: 54.2 MB / 0.7133 GB, free: 3.852 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0192/0.255, allocations: 13.85 MB / 0.7268 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002069/0.2571, allocations: 75.56 kB / 0.7269 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002875/0.26, allocations: 0.9707 MB / 0.7278 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005412/0.2655, allocations: 2.219 MB / 0.73 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004567/0.27, allocations: 2.012 MB / 0.732 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.005395/0.2754, allocations: 4.439 MB / 0.7363 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002224/0.2777, allocations: 1.575 MB / 0.7378 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003746/0.2814, allocations: 1.839 MB / 0.7396 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001891/0.2833, allocations: 1.272 MB / 0.7409 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003663/0.2837, allocations: 160 kB / 0.741 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003223/0.2869, allocations: 1.427 MB / 0.7424 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006742/0.2876, allocations: 482.5 kB / 0.7429 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.2891, allocations: 0.9291 MB / 0.7438 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004653/0.2937, allocations: 3.099 MB / 0.7468 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2937, allocations: 0 / 0.7468 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2937, allocations: 0 / 0.7468 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.733e-05/0.2938, allocations: 0 / 0.7468 GB, free: 1.406 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: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.3157/0.6095, allocations: 2.211 MB / 0.749 GB, free: 84.96 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.6096, allocations: 8.938 kB / 0.749 GB, free: 84.96 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/0.6116, allocations: 382.4 kB / 0.7494 GB, free: 84.86 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003025/0.6146, allocations: 1.49 MB / 0.7508 GB, free: 84.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.25e-05/0.6147, allocations: 79.28 kB / 0.7509 GB, free: 84.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/0.6149, allocations: 112.3 kB / 0.751 GB, free: 84.49 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.6172, allocations: 1.203 MB / 0.7522 GB, free: 83.97 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.6173, allocations: 1.719 kB / 0.7522 GB, free: 83.97 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.649e-05/0.6174, allocations: 42.27 kB / 0.7522 GB, free: 83.94 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.6174, allocations: 32.78 kB / 0.7522 GB, free: 83.94 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002325/0.6197, allocations: 0.9668 MB / 0.7532 GB, free: 83.62 MB / 0.5762 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.007464/0.6272, allocations: 5.148 MB / 0.7582 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.6288, allocations: 0.6029 MB / 0.7588 GB, free: 80.04 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007178/0.6295, allocations: 303.7 kB / 0.7591 GB, free: 79.94 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004908/0.6344, allocations: 2.984 MB / 0.762 GB, free: 77.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000873/0.6353, allocations: 334.7 kB / 0.7623 GB, free: 77.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 3.496e-06/0.6353, allocations: 5.141 kB / 0.7623 GB, free: 77.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002457/0.6378, allocations: 0.8724 MB / 0.7632 GB, free: 76.99 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.6378, allocations: 62.05 kB / 0.7632 GB, free: 76.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002286/0.6401, allocations: 1.39 MB / 0.7646 GB, free: 76.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.96e-05/0.6402, allocations: 38.8 kB / 0.7646 GB, free: 76.36 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005807/0.6408, allocations: 0.7504 MB / 0.7654 GB, free: 75.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.6409, allocations: 195.3 kB / 0.7656 GB, free: 75.68 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.6412, allocations: 212 kB / 0.7658 GB, free: 75.58 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.337e-05/0.6413, allocations: 337.3 kB / 0.7661 GB, free: 75.26 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007952/0.6421, allocations: 329.6 kB / 0.7664 GB, free: 75.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009874/0.6431, allocations: 0.6695 MB / 0.767 GB, free: 74.61 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/0.6448, allocations: 0.9812 MB / 0.768 GB, free: 73.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.6448, allocations: 3.469 kB / 0.768 GB, free: 73.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002808/0.6476, allocations: 1.169 MB / 0.7691 GB, free: 73.46 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.715e-05/0.6477, allocations: 36.86 kB / 0.7692 GB, free: 73.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.6477, allocations: 12.17 kB / 0.7692 GB, free: 73.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.972e-05/0.6478, allocations: 18.09 kB / 0.7692 GB, free: 73.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.6488, allocations: 232.5 kB / 0.7694 GB, free: 73.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.918e-05/0.6488, allocations: 21.67 kB / 0.7695 GB, free: 73.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.6502, allocations: 166.2 kB / 0.7696 GB, free: 73.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.6503, allocations: 60.88 kB / 0.7697 GB, free: 73.31 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001244/0.6516, allocations: 0.602 MB / 0.7703 GB, free: 73.02 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001034/0.6526, allocations: 0.6697 MB / 0.7709 GB, free: 72.47 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001596/0.6542, allocations: 0.9848 MB / 0.7719 GB, free: 71.75 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.773e-06/0.6542, allocations: 3.969 kB / 0.7719 GB, free: 71.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002437/0.6567, allocations: 1.165 MB / 0.773 GB, free: 71.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.6567, allocations: 45.02 kB / 0.7731 GB, free: 71.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.6568, allocations: 10.84 kB / 0.7731 GB, free: 71.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.6568, allocations: 14.5 kB / 0.7731 GB, free: 71.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008403/0.6576, allocations: 226.7 kB / 0.7733 GB, free: 71.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.6577, allocations: 20.41 kB / 0.7733 GB, free: 71.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.659, allocations: 127.4 kB / 0.7734 GB, free: 71.06 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.6591, allocations: 64.81 kB / 0.7735 GB, free: 71.04 MB / 0.5762 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 (115): * Single equations (assignments): 113 * 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.0003384/0.6595, allocations: 241.4 kB / 0.7737 GB, free: 70.82 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.6598, allocations: 156.4 kB / 0.7739 GB, free: 70.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.6621, allocations: 1.125 MB / 0.775 GB, free: 70.14 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001395/0.6635, allocations: 0.8907 MB / 0.7759 GB, free: 69.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.6635, allocations: 3.984 kB / 0.7759 GB, free: 69.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000526/0.6641, allocations: 336.3 kB / 0.7762 GB, free: 69.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.6643, allocations: 15.91 kB / 0.7762 GB, free: 69.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.665, allocations: 49.11 kB / 0.7762 GB, free: 69.24 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.6651, allocations: 52.36 kB / 0.7763 GB, free: 69.21 MB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001923/0.667, allocations: 0.9307 MB / 0.7772 GB, free: 68.71 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002426/0.6695, allocations: 1.501 MB / 0.7787 GB, free: 67.82 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006538/0.6701, allocations: 382.8 kB / 0.779 GB, free: 67.63 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001389/0.6715, allocations: 0.9525 MB / 0.78 GB, free: 67.11 MB / 0.5762 GB Notification: Performance of Backend: time 5.71e-07/0.6715, allocations: 1.094 kB / 0.78 GB, free: 67.11 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004075/0.6756, allocations: 1.729 MB / 0.7816 GB, free: 66.29 MB / 0.5762 GB Notification: Performance of SimCode: time 0.005144/0.6808, allocations: 3.567 MB / 0.7851 GB, free: 64.03 MB / 0.5762 GB Notification: Performance of Templates: time 0.04873/0.7295, allocations: 36.79 MB / 0.8211 GB, free: 28.99 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (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 & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)