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.001273/0.001273, allocations: 105 kB / 16.41 MB, free: 6.465 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.001279/0.001279, allocations: 187 kB / 17.34 MB, free: 5.719 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8059/0.8059, allocations: 135.1 MB / 426.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.34 kB / 0.5863 GB, free: 21.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1646, allocations: 80.92 MB / 0.6653 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.02679/0.1914, allocations: 22.33 MB / 0.6871 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.009428/0.2009, allocations: 5.231 MB / 0.6922 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.2021, allocations: 19.88 kB / 0.6922 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.2032, allocations: 309.8 kB / 0.6925 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.2063, allocations: 0.8665 MB / 0.6934 GB, free: 8.895 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002142/0.2084, allocations: 0.7144 MB / 0.6941 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002376/0.2108, allocations: 1.495 MB / 0.6955 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.2118, allocations: 0.5183 MB / 0.696 GB, free: 6.152 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.2133, allocations: 0.6381 MB / 0.6967 GB, free: 5.512 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2144, allocations: 493.8 kB / 0.6971 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.2146, allocations: 52 kB / 0.6972 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.2162, allocations: 0.6395 MB / 0.6978 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002846/0.2165, allocations: 151.3 kB / 0.698 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006637/0.2172, allocations: 370 kB / 0.6983 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.2191, allocations: 1.067 MB / 0.6993 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2191, allocations: 0 / 0.6993 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.265e-06/0.2191, allocations: 0 / 0.6993 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.758e-05/0.2192, allocations: 4 kB / 0.6993 GB, free: 2.75 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.002495/0.2217, allocations: 1.054 MB / 0.7004 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.2217, allocations: 9.109 kB / 0.7004 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.222, allocations: 80 kB / 0.7005 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.2232, allocations: 0.5776 MB / 0.701 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.479e-05/0.2232, allocations: 28.66 kB / 0.7011 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.2233, allocations: 36 kB / 0.7011 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000683/0.224, allocations: 318 kB / 0.7014 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.224, allocations: 0 / 0.7014 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.2241, allocations: 8 kB / 0.7014 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.2241, allocations: 12.66 kB / 0.7014 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005995/0.2247, allocations: 258.4 kB / 0.7017 GB, free: 292 kB / 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.002781/0.2275, allocations: 1.569 MB / 0.7032 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.2279, allocations: 186.4 kB / 0.7034 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.2281, allocations: 100.8 kB / 0.7035 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004305/0.2286, allocations: 421.5 kB / 0.7039 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.2286, allocations: 34.56 kB / 0.7039 GB, free: 13.75 MB / 0.545 GB Notification: Performance of pre-optimization done (n=19): time 1.964e-06/0.2286, allocations: 0 / 0.7039 GB, free: 13.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.0008635/0.2295, allocations: 335.3 kB / 0.7042 GB, free: 13.42 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.2296, allocations: 55.41 kB / 0.7043 GB, free: 13.36 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009155/0.2305, allocations: 0.6488 MB / 0.7049 GB, free: 12.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.89e-05/0.2305, allocations: 33.7 kB / 0.7049 GB, free: 12.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.2308, allocations: 300.4 kB / 0.7052 GB, free: 12.36 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.264e-05/0.2309, allocations: 78.98 kB / 0.7053 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.2311, allocations: 98.02 kB / 0.7054 GB, free: 12.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.2312, allocations: 378.7 kB / 0.7058 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.2316, allocations: 134.5 kB / 0.7059 GB, free: 11.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/0.2319, allocations: 206.3 kB / 0.7061 GB, free: 11.44 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005491/0.2325, allocations: 289.1 kB / 0.7064 GB, free: 11.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2325, allocations: 0 / 0.7064 GB, free: 11.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009026/0.2334, allocations: 448.5 kB / 0.7068 GB, free: 10.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.2334, allocations: 11.98 kB / 0.7068 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.2335, allocations: 0 / 0.7068 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.2335, allocations: 8.062 kB / 0.7068 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008804/0.2344, allocations: 143.8 kB / 0.7069 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008193/0.2352, allocations: 1.192 MB / 0.7081 GB, free: 9.301 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005338/0.2358, allocations: 43.67 kB / 0.7081 GB, free: 9.258 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.509e-05/0.2358, allocations: 19.98 kB / 0.7082 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005138/0.2363, allocations: 268.9 kB / 0.7084 GB, free: 8.973 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003755/0.2367, allocations: 214.3 kB / 0.7086 GB, free: 8.742 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005143/0.2373, allocations: 285.4 kB / 0.7089 GB, free: 8.449 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.454e-06/0.2373, allocations: 0 / 0.7089 GB, free: 8.449 MB / 0.545 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008343/0.2381, allocations: 436.6 kB / 0.7093 GB, free: 8.016 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2381, allocations: 7.938 kB / 0.7093 GB, free: 8.008 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2381, allocations: 0 / 0.7093 GB, free: 8.008 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.983e-06/0.2381, allocations: 4 kB / 0.7093 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004868/0.2386, allocations: 111.9 kB / 0.7094 GB, free: 7.895 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.2387, allocations: 4 kB / 0.7094 GB, free: 7.891 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/0.2392, allocations: 43.66 kB / 0.7095 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.2392, allocations: 20.25 kB / 0.7095 GB, free: 7.828 MB / 0.545 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.0001729/0.2394, allocations: 204.1 kB / 0.7097 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.2395, allocations: 63.23 kB / 0.7098 GB, free: 7.559 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007753/0.2403, allocations: 330.3 kB / 0.7101 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.2403, allocations: 4 kB / 0.7101 GB, free: 7.219 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.2404, allocations: 0 / 0.7101 GB, free: 7.219 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.2404, allocations: 3.984 kB / 0.7101 GB, free: 7.215 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.2419, allocations: 0.9034 MB / 0.711 GB, free: 6.242 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.2419, allocations: 0 / 0.711 GB, free: 6.242 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.2422, allocations: 59.91 kB / 0.711 GB, free: 6.184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.2423, allocations: 0 / 0.711 GB, free: 6.184 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.666e-05/0.2423, allocations: 11.94 kB / 0.711 GB, free: 6.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006573/0.243, allocations: 1.18 MB / 0.7122 GB, free: 4.945 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.243, allocations: 7.969 kB / 0.7122 GB, free: 4.938 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008617/0.2439, allocations: 0.5059 MB / 0.7127 GB, free: 4.402 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.2441, allocations: 172.2 kB / 0.7128 GB, free: 4.215 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.2443, allocations: 11.98 kB / 0.7129 GB, free: 4.203 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003246/0.2446, allocations: 11.98 kB / 0.7129 GB, free: 4.191 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.663e-05/0.2447, allocations: 15.98 kB / 0.7129 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.2447, allocations: 7.984 kB / 0.7129 GB, free: 4.168 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006709/0.2454, allocations: 455.1 kB / 0.7133 GB, free: 3.727 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/0.2454, allocations: 0 / 0.7133 GB, free: 3.727 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001037/0.2464, allocations: 299.5 kB / 0.7136 GB, free: 3.434 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.0006912/0.2471, allocations: 255.8 kB / 0.7139 GB, free: 3.184 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001591/0.2487, allocations: 0.5299 MB / 0.7144 GB, free: 2.656 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.2487, allocations: 4 kB / 0.7144 GB, free: 2.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.2491, allocations: 124.3 kB / 0.7145 GB, free: 2.531 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.2504, allocations: 270.6 kB / 0.7147 GB, free: 2.273 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.2524, allocations: 1.034 MB / 0.7158 GB, free: 1.195 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.2529, allocations: 0.898 MB / 0.7166 GB, free: 276 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2531, allocations: 55.42 kB / 0.7167 GB, free: 220 kB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.2531, allocations: 0 / 0.7167 GB, free: 220 kB / 0.545 GB Notification: Performance of Templates: time 0.02135/0.2744, allocations: 14.93 MB / 0.7313 GB, free: 1.352 MB / 0.5606 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)