Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001691/0.00169, allocations: 107.2 kB / 16.41 MB, free: 6.492 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.001898/0.001898, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7736/0.7736, allocations: 132.2 MB / 423.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.67 kB / 0.582 GB, free: 23.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1567, allocations: 80.22 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.02337/0.1801, allocations: 22.32 MB / 0.6821 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00713/0.1873, allocations: 5.23 MB / 0.6872 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006897/0.188, allocations: 19.88 kB / 0.6873 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0008333/0.1889, allocations: 309.8 kB / 0.6876 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002036/0.1909, allocations: 0.8626 MB / 0.6884 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.1926, allocations: 0.7252 MB / 0.6891 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001844/0.1945, allocations: 1.495 MB / 0.6906 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009009/0.1954, allocations: 0.5261 MB / 0.6911 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1967, allocations: 0.6419 MB / 0.6917 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008658/0.1976, allocations: 481.9 kB / 0.6922 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.1977, allocations: 52 kB / 0.6922 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.199, allocations: 0.6395 MB / 0.6928 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.1992, allocations: 151.4 kB / 0.693 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004176/0.1996, allocations: 362 kB / 0.6933 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.201, allocations: 1.067 MB / 0.6944 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.201, allocations: 4 kB / 0.6944 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2011, allocations: 0 / 0.6944 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.867e-06/0.2011, allocations: 4 kB / 0.6944 GB, free: 7.297 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.001694/0.2028, allocations: 1.054 MB / 0.6954 GB, free: 6.191 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2028, allocations: 8.031 kB / 0.6954 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.203, allocations: 80 kB / 0.6955 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008004/0.2038, allocations: 0.5776 MB / 0.6961 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.2038, allocations: 28.66 kB / 0.6961 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-05/0.2039, allocations: 36 kB / 0.6961 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.2045, allocations: 322 kB / 0.6964 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2045, allocations: 0 / 0.6964 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.2045, allocations: 12 kB / 0.6964 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.2046, allocations: 12.66 kB / 0.6965 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.2051, allocations: 254.5 kB / 0.6967 GB, free: 4.832 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.002373/0.2075, allocations: 1.565 MB / 0.6982 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.2079, allocations: 186.5 kB / 0.6984 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.2081, allocations: 92.81 kB / 0.6985 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003705/0.2085, allocations: 433.4 kB / 0.6989 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.2085, allocations: 34.56 kB / 0.6989 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=19): time 1.794e-06/0.2085, allocations: 0 / 0.6989 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of matching and sorting (n=19): time 0.0007587/0.2093, allocations: 327.3 kB / 0.6992 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.2093, allocations: 51.41 kB / 0.6993 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007489/0.2101, allocations: 0.6565 MB / 0.6999 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.2101, allocations: 37.64 kB / 0.7 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.2103, allocations: 296.5 kB / 0.7003 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.076e-05/0.2104, allocations: 78.98 kB / 0.7003 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.2105, allocations: 98.02 kB / 0.7004 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.2107, allocations: 378.7 kB / 0.7008 GB, free: 356 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.211, allocations: 130.5 kB / 0.7009 GB, free: 224 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003697/0.2114, allocations: 210.3 kB / 0.7011 GB, free: 15.99 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.2119, allocations: 294.1 kB / 0.7014 GB, free: 15.69 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2119, allocations: 0 / 0.7014 GB, free: 15.69 MB / 0.545 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008374/0.2128, allocations: 448.6 kB / 0.7018 GB, free: 15.24 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2128, allocations: 8 kB / 0.7018 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.2128, allocations: 0 / 0.7018 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2128, allocations: 4 kB / 0.7018 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000811/0.2136, allocations: 147.8 kB / 0.702 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007113/0.2144, allocations: 1.188 MB / 0.7031 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.2148, allocations: 55.75 kB / 0.7032 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.2149, allocations: 16 kB / 0.7032 GB, free: 13.78 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004222/0.2153, allocations: 273 kB / 0.7035 GB, free: 13.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003313/0.2156, allocations: 206.3 kB / 0.7037 GB, free: 13.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004942/0.2161, allocations: 285.5 kB / 0.7039 GB, free: 13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.2161, allocations: 0 / 0.7039 GB, free: 13 MB / 0.545 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008041/0.217, allocations: 444.6 kB / 0.7044 GB, free: 12.55 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.217, allocations: 8.062 kB / 0.7044 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.217, allocations: 3.984 kB / 0.7044 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.41e-06/0.217, allocations: 4 kB / 0.7044 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.2175, allocations: 107.9 kB / 0.7045 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2175, allocations: 4 kB / 0.7045 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.2179, allocations: 39.75 kB / 0.7045 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.2179, allocations: 16 kB / 0.7045 GB, free: 12.38 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.0001484/0.2181, allocations: 212 kB / 0.7047 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-05/0.2182, allocations: 63.23 kB / 0.7048 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006789/0.2189, allocations: 318 kB / 0.7051 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.2189, allocations: 4 kB / 0.7051 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2189, allocations: 4 kB / 0.7051 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2189, allocations: 0 / 0.7051 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.2202, allocations: 0.9032 MB / 0.706 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2202, allocations: 0 / 0.706 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.2205, allocations: 64.08 kB / 0.706 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2205, allocations: 0 / 0.706 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.2205, allocations: 15.92 kB / 0.7061 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005827/0.2211, allocations: 1.168 MB / 0.7072 GB, free: 9.504 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.024e-06/0.2212, allocations: 12.16 kB / 0.7072 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.222, allocations: 0.5097 MB / 0.7077 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.2221, allocations: 180.2 kB / 0.7079 GB, free: 8.758 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.2222, allocations: 8 kB / 0.7079 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.2225, allocations: 15.98 kB / 0.7079 GB, free: 8.734 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.2226, allocations: 15.97 kB / 0.7079 GB, free: 8.719 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.2226, allocations: 4 kB / 0.7079 GB, free: 8.715 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005702/0.2232, allocations: 451 kB / 0.7084 GB, free: 8.277 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2232, allocations: 64 / 0.7084 GB, free: 8.277 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000824/0.2241, allocations: 303.5 kB / 0.7086 GB, free: 7.98 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.0005562/0.2246, allocations: 251 kB / 0.7089 GB, free: 7.734 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001382/0.226, allocations: 0.527 MB / 0.7094 GB, free: 7.211 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.226, allocations: 0 / 0.7094 GB, free: 7.211 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003503/0.2264, allocations: 137.6 kB / 0.7095 GB, free: 7.078 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.2277, allocations: 274.4 kB / 0.7098 GB, free: 6.824 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.2294, allocations: 1.038 MB / 0.7108 GB, free: 5.742 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.2299, allocations: 0.8864 MB / 0.7117 GB, free: 4.828 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.2301, allocations: 47.42 kB / 0.7117 GB, free: 4.781 MB / 0.545 GB Notification: Performance of SimCode: time 6.11e-07/0.2301, allocations: 0 / 0.7117 GB, free: 4.781 MB / 0.545 GB Notification: Performance of Templates: time 0.01928/0.2494, allocations: 14.92 MB / 0.7263 GB, free: 5.957 MB / 0.5606 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)