Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001177, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001407/0.001407, allocations: 191.1 kB / 16.14 MB, free: 6.688 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.36/1.36, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7808/0.7808, allocations: 132.2 MB / 422.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.25 kB / 0.5011 GB, free: 9.207 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1891, allocations: 80.2 MB / 0.5794 GB, free: 9.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.3705/0.5596, allocations: 29.65 MB / 0.6084 GB, free: 35.7 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009546/0.5692, allocations: 8.217 MB / 0.6164 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001248/0.5705, allocations: 26.62 kB / 0.6164 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.5716, allocations: 353.6 kB / 0.6168 GB, free: 35.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003867/0.5755, allocations: 1.232 MB / 0.618 GB, free: 35.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.578, allocations: 1.035 MB / 0.619 GB, free: 35.18 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004005/0.582, allocations: 4.201 MB / 0.6231 GB, free: 34.05 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.5836, allocations: 1.182 MB / 0.6242 GB, free: 33.76 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002694/0.5863, allocations: 1.503 MB / 0.6257 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002196/0.5885, allocations: 1.625 MB / 0.6273 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003698/0.5889, allocations: 69.97 kB / 0.6274 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002417/0.5913, allocations: 0.9481 MB / 0.6283 GB, free: 32.69 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003752/0.5917, allocations: 349.2 kB / 0.6286 GB, free: 32.56 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008193/0.5925, allocations: 0.698 MB / 0.6293 GB, free: 32.23 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.5947, allocations: 2.118 MB / 0.6314 GB, free: 31.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5947, allocations: 0 / 0.6314 GB, free: 31.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5947, allocations: 0 / 0.6314 GB, free: 31.65 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.808e-05/0.5947, allocations: 4 kB / 0.6314 GB, free: 31.64 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002742/0.5975, allocations: 1.672 MB / 0.633 GB, free: 30.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.5975, allocations: 10.94 kB / 0.633 GB, free: 30.61 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004068/0.5979, allocations: 154 kB / 0.6332 GB, free: 30.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.5994, allocations: 0.8961 MB / 0.634 GB, free: 30.05 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.009e-05/0.5995, allocations: 77.5 kB / 0.6341 GB, free: 30.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/0.5997, allocations: 117.4 kB / 0.6342 GB, free: 29.99 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009792/0.6007, allocations: 0.6361 MB / 0.6348 GB, free: 29.7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.6007, allocations: 0 / 0.6348 GB, free: 29.7 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.943e-05/0.6007, allocations: 25.25 kB / 0.6349 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.6008, allocations: 15.75 kB / 0.6349 GB, free: 29.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008144/0.6016, allocations: 468.8 kB / 0.6353 GB, free: 29.53 MB / 0.4981 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.003817/0.6054, allocations: 2.866 MB / 0.6381 GB, free: 27.74 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005927/0.606, allocations: 310.2 kB / 0.6384 GB, free: 27.62 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.6063, allocations: 144.9 kB / 0.6386 GB, free: 27.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002856/0.6066, allocations: 343.6 kB / 0.6389 GB, free: 27.19 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.6067, allocations: 45.34 kB / 0.6389 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.6067, allocations: 0 / 0.6389 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.001318/0.608, allocations: 0.5252 MB / 0.6394 GB, free: 26.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.608, allocations: 57.5 kB / 0.6395 GB, free: 26.88 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008592/0.6089, allocations: 0.9031 MB / 0.6404 GB, free: 26.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.609, allocations: 58.05 kB / 0.6404 GB, free: 26.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003788/0.6094, allocations: 0.5354 MB / 0.641 GB, free: 26.08 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.524e-05/0.6095, allocations: 120 kB / 0.6411 GB, free: 25.99 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/0.6099, allocations: 288.5 kB / 0.6414 GB, free: 25.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.767e-05/0.6099, allocations: 334 kB / 0.6417 GB, free: 25.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.6103, allocations: 194.7 kB / 0.6419 GB, free: 25.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.6116, allocations: 1.146 MB / 0.643 GB, free: 24.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008505/0.6124, allocations: 458.5 kB / 0.6434 GB, free: 24.18 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6124, allocations: 1.094 kB / 0.6434 GB, free: 24.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001425/0.6139, allocations: 0.6485 MB / 0.644 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.6139, allocations: 5.906 kB / 0.6441 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.6139, allocations: 2.688 kB / 0.6441 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.6139, allocations: 5.125 kB / 0.6441 GB, free: 23.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.6155, allocations: 242.5 kB / 0.6443 GB, free: 23.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.6166, allocations: 2.955 MB / 0.6472 GB, free: 20.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003717/0.6203, allocations: 0.7277 MB / 0.6479 GB, free: 20.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/0.6204, allocations: 26.7 kB / 0.6479 GB, free: 20.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007265/0.6212, allocations: 368.5 kB / 0.6483 GB, free: 20.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001228/0.6224, allocations: 1.156 MB / 0.6494 GB, free: 19.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007973/0.6232, allocations: 460.7 kB / 0.6498 GB, free: 19.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.394e-06/0.6232, allocations: 1.094 kB / 0.6498 GB, free: 19.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001505/0.6247, allocations: 0.6518 MB / 0.6505 GB, free: 19.01 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.6248, allocations: 7.125 kB / 0.6505 GB, free: 19.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.6248, allocations: 8.078 kB / 0.6505 GB, free: 19.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.6248, allocations: 9.141 kB / 0.6505 GB, free: 19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007664/0.6256, allocations: 157 kB / 0.6506 GB, free: 18.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.6256, allocations: 10.09 kB / 0.6507 GB, free: 18.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/0.6302, allocations: 0.988 MB / 0.6516 GB, free: 18.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.881e-05/0.6303, allocations: 26.38 kB / 0.6516 GB, free: 18.89 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002924/0.6306, allocations: 241.8 kB / 0.6519 GB, free: 18.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.6308, allocations: 95.56 kB / 0.652 GB, free: 18.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.632, allocations: 0.5108 MB / 0.6525 GB, free: 18.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.632, allocations: 9.031 kB / 0.6525 GB, free: 18.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.6321, allocations: 0 / 0.6525 GB, free: 18.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.6321, allocations: 6.922 kB / 0.6525 GB, free: 18.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.6344, allocations: 1.253 MB / 0.6537 GB, free: 17.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.6344, allocations: 1.5 kB / 0.6537 GB, free: 17.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005921/0.635, allocations: 114.5 kB / 0.6538 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.6351, allocations: 3.469 kB / 0.6538 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.6351, allocations: 18.3 kB / 0.6538 GB, free: 17.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008559/0.636, allocations: 2.945 MB / 0.6567 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.636, allocations: 1.906 kB / 0.6567 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.6369, allocations: 0.5605 MB / 0.6573 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.6372, allocations: 215.1 kB / 0.6575 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.6374, allocations: 7.875 kB / 0.6575 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005821/0.6379, allocations: 64.7 kB / 0.6575 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.6381, allocations: 30.59 kB / 0.6576 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/0.6381, allocations: 16.5 kB / 0.6576 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008367/0.6389, allocations: 0.6069 MB / 0.6582 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.8e-07/0.639, allocations: 0 / 0.6582 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002023/0.641, allocations: 0.5475 MB / 0.6587 GB, free: 13.85 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000815/0.6418, allocations: 336.8 kB / 0.659 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002802/0.6446, allocations: 0.8359 MB / 0.6598 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.6446, allocations: 0.625 kB / 0.6598 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006202/0.6453, allocations: 230 kB / 0.6601 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/0.6478, allocations: 490.2 kB / 0.6605 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.6507, allocations: 1.847 MB / 0.6623 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.6512, allocations: 1.025 MB / 0.6633 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001338/0.6526, allocations: 214.8 kB / 0.6635 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.6528, allocations: 80.27 kB / 0.6636 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of SimCode: time 1.272e-06/0.6528, allocations: 0 / 0.6636 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.04239/0.6952, allocations: 24.51 MB / 0.6876 GB, free: 2.363 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)