Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007195/0.0072, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.001264/0.001264, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9881/0.9881, allocations: 135.1 MB / 425.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.91 kB / 0.5856 GB, free: 3.309 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.461/0.4622, allocations: 80.91 MB / 0.6646 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.02632/0.4886, allocations: 22.32 MB / 0.6864 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01049/0.4992, allocations: 5.226 MB / 0.6915 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001347/0.5005, allocations: 24.25 kB / 0.6916 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.5018, allocations: 318.8 kB / 0.6919 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.5052, allocations: 0.9192 MB / 0.6928 GB, free: 388 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002436/0.5076, allocations: 0.7109 MB / 0.6935 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002751/0.5104, allocations: 1.507 MB / 0.6949 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.5115, allocations: 0.5187 MB / 0.6954 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.5135, allocations: 0.6392 MB / 0.6961 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.5147, allocations: 490.6 kB / 0.6965 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0003193/0.5151, allocations: 54.25 kB / 0.6966 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.5172, allocations: 0.6384 MB / 0.6972 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.5175, allocations: 155.1 kB / 0.6974 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0008986/0.5184, allocations: 359.5 kB / 0.6977 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002415/0.5208, allocations: 1.07 MB / 0.6987 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.5209, allocations: 1.375 kB / 0.6987 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5209, allocations: 0 / 0.6987 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.082e-05/0.5209, allocations: 0 / 0.6987 GB, free: 12.5 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002956/0.5239, allocations: 1.06 MB / 0.6998 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5239, allocations: 9.625 kB / 0.6998 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.5243, allocations: 79.66 kB / 0.6999 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.5256, allocations: 0.5743 MB / 0.7004 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.5257, allocations: 28.75 kB / 0.7005 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.608e-05/0.5258, allocations: 43.09 kB / 0.7005 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006948/0.5265, allocations: 311.7 kB / 0.7008 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.5265, allocations: 3.984 kB / 0.7008 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.5266, allocations: 10.75 kB / 0.7008 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.5266, allocations: 11.28 kB / 0.7008 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006074/0.5272, allocations: 260.5 kB / 0.7011 GB, free: 10.76 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 preOpt removeSimpleEquations (simulation): time 0.002876/0.5301, allocations: 1.572 MB / 0.7026 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.5305, allocations: 185.6 kB / 0.7028 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.5307, allocations: 95.42 kB / 0.7029 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004293/0.5312, allocations: 420.1 kB / 0.7033 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.5312, allocations: 36.19 kB / 0.7033 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=19): time 2.274e-06/0.5312, allocations: 0 / 0.7033 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of matching and sorting (n=19): time 0.0008963/0.5321, allocations: 331.8 kB / 0.7036 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.5322, allocations: 52.84 kB / 0.7037 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009954/0.5332, allocations: 0.6445 MB / 0.7043 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.5332, allocations: 31.14 kB / 0.7043 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.5335, allocations: 307.4 kB / 0.7046 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.864e-05/0.5336, allocations: 68.36 kB / 0.7047 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.5338, allocations: 99.83 kB / 0.7048 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5339, allocations: 380.7 kB / 0.7051 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.5343, allocations: 141.2 kB / 0.7053 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.5347, allocations: 206.1 kB / 0.7055 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005502/0.5352, allocations: 289.5 kB / 0.7058 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.5352, allocations: 1.469 kB / 0.7058 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008547/0.5361, allocations: 452.4 kB / 0.7062 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.5361, allocations: 12.06 kB / 0.7062 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.5361, allocations: 3.938 kB / 0.7062 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.344e-05/0.5362, allocations: 4 kB / 0.7062 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/0.537, allocations: 143.8 kB / 0.7063 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007692/0.5378, allocations: 1.188 MB / 0.7075 GB, free: 5.156 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.5383, allocations: 51.59 kB / 0.7076 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-05/0.5384, allocations: 16 kB / 0.7076 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004541/0.5389, allocations: 272.9 kB / 0.7078 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00035/0.5392, allocations: 206.5 kB / 0.708 GB, free: 4.598 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005001/0.5397, allocations: 285.5 kB / 0.7083 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.795e-06/0.5397, allocations: 4 kB / 0.7083 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008363/0.5406, allocations: 440.6 kB / 0.7087 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.5406, allocations: 4 kB / 0.7087 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.5406, allocations: 8.062 kB / 0.7087 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.689e-06/0.5406, allocations: 0 / 0.7087 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.5411, allocations: 115.8 kB / 0.7088 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.5411, allocations: 4.062 kB / 0.7088 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/0.5416, allocations: 43.72 kB / 0.7089 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.5417, allocations: 19.98 kB / 0.7089 GB, free: 3.672 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.5418, allocations: 203.6 kB / 0.7091 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.5419, allocations: 59.25 kB / 0.7092 GB, free: 3.41 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006931/0.5426, allocations: 323.1 kB / 0.7095 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.5427, allocations: 4 kB / 0.7095 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5427, allocations: 3.938 kB / 0.7095 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5427, allocations: 0 / 0.7095 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.5441, allocations: 0.8995 MB / 0.7104 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.5441, allocations: 4 kB / 0.7104 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.5444, allocations: 59.89 kB / 0.7104 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.5444, allocations: 3.984 kB / 0.7104 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.5444, allocations: 11.94 kB / 0.7104 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006169/0.545, allocations: 1.176 MB / 0.7116 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.5451, allocations: 7.875 kB / 0.7116 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007964/0.5459, allocations: 0.5051 MB / 0.7121 GB, free: 264 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.5461, allocations: 176.2 kB / 0.7122 GB, free: 68 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.663e-05/0.5462, allocations: 8 kB / 0.7123 GB, free: 60 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.5465, allocations: 15.98 kB / 0.7123 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/0.5466, allocations: 27.97 kB / 0.7123 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.5466, allocations: 4 kB / 0.7123 GB, free: 12 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006235/0.5472, allocations: 455 kB / 0.7127 GB, free: 15.57 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5472, allocations: 0 / 0.7127 GB, free: 15.57 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009449/0.5482, allocations: 295.5 kB / 0.713 GB, free: 15.28 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000594/0.5488, allocations: 252.3 kB / 0.7133 GB, free: 15.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001414/0.5502, allocations: 0.5238 MB / 0.7138 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5502, allocations: 256 / 0.7138 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.5506, allocations: 127.9 kB / 0.7139 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.5518, allocations: 282.6 kB / 0.7142 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.5537, allocations: 1.004 MB / 0.7151 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.5542, allocations: 0.8942 MB / 0.716 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004364/0.5546, allocations: 112.8 kB / 0.7161 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.5548, allocations: 47.42 kB / 0.7162 GB, free: 11.99 MB / 0.545 GB Notification: Performance of SimCode: time 2.324e-06/0.5548, allocations: 0 / 0.7162 GB, free: 11.99 MB / 0.545 GB Notification: Performance of Templates: time 0.02222/0.577, allocations: 11.22 MB / 0.7271 GB, free: 0.9336 MB / 0.545 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)