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.007882/0.007882, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001461/0.001461, allocations: 186.9 kB / 16.67 MB, free: 5.969 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8985/0.8985, allocations: 135.1 MB / 425.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 66.36 kB / 0.5856 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.162, allocations: 80.92 MB / 0.6647 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05525/0.2172, allocations: 54.21 MB / 0.7176 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01938/0.2367, allocations: 13.84 MB / 0.7311 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.2391, allocations: 75.56 kB / 0.7312 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.2422, allocations: 0.9707 MB / 0.7321 GB, free: 448 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005857/0.248, allocations: 2.157 MB / 0.7342 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004947/0.253, allocations: 2.005 MB / 0.7362 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005654/0.2587, allocations: 4.434 MB / 0.7405 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/0.2608, allocations: 1.575 MB / 0.7421 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003876/0.2647, allocations: 1.82 MB / 0.7438 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.2666, allocations: 1.268 MB / 0.7451 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002897/0.2669, allocations: 164 kB / 0.7452 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.2699, allocations: 1.42 MB / 0.7466 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005065/0.2704, allocations: 482.4 kB / 0.7471 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.2715, allocations: 0.9369 MB / 0.748 GB, free: 132 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.3501/0.6216, allocations: 3.088 MB / 0.751 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.6216, allocations: 1.578 kB / 0.751 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.924e-06/0.6216, allocations: 0 / 0.751 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.663e-05/0.6217, allocations: 0 / 0.751 GB, free: 10.3 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.004337/0.626, allocations: 2.22 MB / 0.7532 GB, free: 9.152 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6261, allocations: 10.72 kB / 0.7532 GB, free: 9.152 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.6282, allocations: 380.7 kB / 0.7535 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.6312, allocations: 1.49 MB / 0.755 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.866e-05/0.6313, allocations: 81.97 kB / 0.7551 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.6315, allocations: 106 kB / 0.7552 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.6342, allocations: 1.198 MB / 0.7564 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.6343, allocations: 2.969 kB / 0.7564 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.6344, allocations: 45.17 kB / 0.7564 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.784e-05/0.6344, allocations: 25.94 kB / 0.7564 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.637, allocations: 0.9695 MB / 0.7574 GB, free: 8.453 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.008339/0.6453, allocations: 5.145 MB / 0.7624 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.6468, allocations: 0.6089 MB / 0.763 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007721/0.6476, allocations: 297.6 kB / 0.7633 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00413/0.6517, allocations: 2.994 MB / 0.7662 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008113/0.6525, allocations: 342.7 kB / 0.7665 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=53): time 3.677e-06/0.6525, allocations: 0 / 0.7665 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53): time 0.002223/0.6548, allocations: 0.8735 MB / 0.7674 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.6548, allocations: 58.77 kB / 0.7674 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/0.657, allocations: 1.394 MB / 0.7688 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.05e-05/0.6571, allocations: 40.48 kB / 0.7688 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.6578, allocations: 0.7414 MB / 0.7696 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.658, allocations: 205.8 kB / 0.7698 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.6584, allocations: 205 kB / 0.7699 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.6585, allocations: 341.9 kB / 0.7703 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009075/0.6594, allocations: 329.7 kB / 0.7706 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.6605, allocations: 0.6697 MB / 0.7712 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.6621, allocations: 0.9816 MB / 0.7722 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.6621, allocations: 2.688 kB / 0.7722 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002713/0.6648, allocations: 1.167 MB / 0.7733 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.6649, allocations: 36.53 kB / 0.7734 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.6649, allocations: 18.22 kB / 0.7734 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.814e-05/0.665, allocations: 15.12 kB / 0.7734 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000834/0.6658, allocations: 232.1 kB / 0.7736 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-05/0.6659, allocations: 20.88 kB / 0.7737 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.6675, allocations: 167.6 kB / 0.7738 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.6677, allocations: 56.34 kB / 0.7739 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001487/0.6692, allocations: 0.6001 MB / 0.7745 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001005/0.6702, allocations: 0.6667 MB / 0.7751 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001623/0.6718, allocations: 0.9794 MB / 0.7761 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.214e-06/0.6718, allocations: 4.188 kB / 0.7761 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.003111/0.6749, allocations: 1.164 MB / 0.7772 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.675, allocations: 37.36 kB / 0.7772 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.675, allocations: 14.7 kB / 0.7772 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.675, allocations: 15.94 kB / 0.7773 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008079/0.6758, allocations: 231.4 kB / 0.7775 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.6759, allocations: 22.23 kB / 0.7775 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.6774, allocations: 129.1 kB / 0.7776 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.6775, allocations: 55.81 kB / 0.7777 GB, free: 0.5312 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.0004053/0.6779, allocations: 246.6 kB / 0.7779 GB, free: 352 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.6782, allocations: 154.1 kB / 0.7781 GB, free: 268 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.6807, allocations: 1.118 MB / 0.7792 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/0.6808, allocations: 11.97 kB / 0.7792 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6808, allocations: 3.375 kB / 0.7792 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001569/0.6823, allocations: 0.8911 MB / 0.78 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004614/0.687, allocations: 2.2 MB / 0.7822 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.687, allocations: 2.094 kB / 0.7822 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/0.6876, allocations: 125.9 kB / 0.7823 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.6876, allocations: 10.42 kB / 0.7823 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.6876, allocations: 20.3 kB / 0.7823 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.6876, allocations: 2.406 kB / 0.7823 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.6877, allocations: 2.531 kB / 0.7823 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.6902, allocations: 1.428 MB / 0.7837 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000665/0.6909, allocations: 350.7 kB / 0.7841 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.6911, allocations: 18.7 kB / 0.7841 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007084/0.6918, allocations: 52.55 kB / 0.7841 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.6919, allocations: 48.75 kB / 0.7842 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.849e-05/0.692, allocations: 38.61 kB / 0.7842 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001423/0.6934, allocations: 0.9441 MB / 0.7851 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6934, allocations: 0 / 0.7851 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002561/0.696, allocations: 0.8162 MB / 0.7859 GB, free: 14.82 MB / 0.5919 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 (71): * Single equations (assignments): 57 * 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.001332/0.6973, allocations: 0.5423 MB / 0.7865 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002947/0.7003, allocations: 1.443 MB / 0.7879 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.7003, allocations: 3.344 kB / 0.7879 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.7011, allocations: 414.1 kB / 0.7883 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/0.705, allocations: 0.7937 MB / 0.7891 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.7095, allocations: 2.66 MB / 0.7917 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007627/0.7103, allocations: 1.261 MB / 0.7929 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001693/0.712, allocations: 415.1 kB / 0.7933 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.7123, allocations: 128.1 kB / 0.7934 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of SimCode: time 7.91e-07/0.7123, allocations: 0 / 0.7934 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of Templates: time 0.05488/0.7672, allocations: 32.18 MB / 0.8248 GB, free: 5.957 MB / 0.6075 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)