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.0008316/0.0008315, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.00556/0.00556, allocations: 169 kB / 16.26 MB, free: 6.652 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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7489/0.7489, allocations: 132.3 MB / 423.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003949, allocations: 8.906 kB / 0.504 GB, free: 3.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.451/0.4514, allocations: 81.59 MB / 0.5837 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03211/0.4836, allocations: 28.95 MB / 0.6119 GB, free: 14.64 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01359/0.4972, allocations: 8.108 MB / 0.6199 GB, free: 8.062 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.499, allocations: 25.47 kB / 0.6199 GB, free: 8.051 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.5003, allocations: 348.6 kB / 0.6202 GB, free: 7.762 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004714/0.505, allocations: 1.231 MB / 0.6214 GB, free: 6.789 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002969/0.508, allocations: 1.042 MB / 0.6224 GB, free: 6.051 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.005707/0.5137, allocations: 4.203 MB / 0.6265 GB, free: 3.801 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00199/0.5157, allocations: 1.164 MB / 0.6277 GB, free: 3.055 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003785/0.5195, allocations: 1.49 MB / 0.6291 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002763/0.5223, allocations: 1.597 MB / 0.6307 GB, free: 212 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003363/0.5226, allocations: 64 kB / 0.6308 GB, free: 148 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.5249, allocations: 0.9318 MB / 0.6317 GB, free: 15.21 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000411/0.5254, allocations: 350.6 kB / 0.632 GB, free: 14.87 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009073/0.5263, allocations: 0.7015 MB / 0.6327 GB, free: 14.16 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002575/0.5289, allocations: 2.099 MB / 0.6347 GB, free: 12.05 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5289, allocations: 0 / 0.6347 GB, free: 12.05 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.5289, allocations: 0 / 0.6347 GB, free: 12.05 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.5289, allocations: 7.938 kB / 0.6347 GB, free: 12.04 MB / 478.1 MB 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.002347/0.5313, allocations: 1.328 MB / 0.636 GB, free: 10.66 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.5313, allocations: 12.03 kB / 0.636 GB, free: 10.65 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003337/0.5317, allocations: 150.8 kB / 0.6362 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.5332, allocations: 0.8948 MB / 0.6371 GB, free: 9.551 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.229e-05/0.5333, allocations: 81.31 kB / 0.6371 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.5335, allocations: 116 kB / 0.6373 GB, free: 9.359 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.5346, allocations: 0.6473 MB / 0.6379 GB, free: 8.684 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.5347, allocations: 0 / 0.6379 GB, free: 8.684 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/0.5347, allocations: 20 kB / 0.6379 GB, free: 8.664 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.5347, allocations: 19.94 kB / 0.6379 GB, free: 8.645 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008861/0.5356, allocations: 476.9 kB / 0.6384 GB, free: 8.176 MB / 478.1 MB 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.004473/0.5401, allocations: 2.879 MB / 0.6412 GB, free: 5.141 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.5408, allocations: 319.2 kB / 0.6415 GB, free: 4.82 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.5411, allocations: 149.3 kB / 0.6416 GB, free: 4.672 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003736/0.5415, allocations: 348.7 kB / 0.642 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.5415, allocations: 34.84 kB / 0.642 GB, free: 4.215 MB / 478.1 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.5415, allocations: 3.938 kB / 0.642 GB, free: 4.211 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.001482/0.543, allocations: 0.5459 MB / 0.6425 GB, free: 3.66 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.5431, allocations: 59.41 kB / 0.6426 GB, free: 3.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.5442, allocations: 0.9075 MB / 0.6435 GB, free: 2.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.5444, allocations: 57.7 kB / 0.6435 GB, free: 2.602 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005091/0.5449, allocations: 0.5302 MB / 0.6441 GB, free: 2.062 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.252e-05/0.545, allocations: 106.4 kB / 0.6442 GB, free: 1.957 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.323e-05/0.5451, allocations: 65.67 kB / 0.6442 GB, free: 1.887 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5452, allocations: 333.9 kB / 0.6445 GB, free: 1.555 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.5456, allocations: 189.2 kB / 0.6447 GB, free: 1.371 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.5471, allocations: 1.159 MB / 0.6459 GB, free: 15.85 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000845/0.548, allocations: 471.4 kB / 0.6463 GB, free: 15.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.548, allocations: 4 kB / 0.6463 GB, free: 15.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001387/0.5494, allocations: 0.6656 MB / 0.647 GB, free: 14.69 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.5495, allocations: 156.2 kB / 0.6471 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5495, allocations: 4 kB / 0.6471 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.5495, allocations: 7.938 kB / 0.6471 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.551, allocations: 243.6 kB / 0.6473 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.5527, allocations: 2.961 MB / 0.6502 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/0.5561, allocations: 0.7457 MB / 0.651 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/0.5562, allocations: 27.98 kB / 0.651 GB, free: 10.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.5562, allocations: 6.5 kB / 0.651 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00101/0.5572, allocations: 0.4972 MB / 0.6515 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5572, allocations: 4.188 kB / 0.6515 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.515e-06/0.5572, allocations: 8 kB / 0.6515 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006478/0.5579, allocations: 167.7 kB / 0.6517 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.5579, allocations: 4 kB / 0.6517 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.5612, allocations: 0.7339 MB / 0.6524 GB, free: 8.988 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.5612, allocations: 23.98 kB / 0.6524 GB, free: 8.965 MB / 494.1 MB 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.00052/0.5618, allocations: 337.8 kB / 0.6527 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.5619, allocations: 94.78 kB / 0.6528 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.563, allocations: 0.5243 MB / 0.6533 GB, free: 8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.5631, allocations: 4 kB / 0.6533 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5631, allocations: 0 / 0.6533 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.5631, allocations: 8.172 kB / 0.6533 GB, free: 7.988 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.5651, allocations: 1.26 MB / 0.6546 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.5651, allocations: 3.984 kB / 0.6546 GB, free: 6.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.5656, allocations: 119.8 kB / 0.6547 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.5656, allocations: 3.938 kB / 0.6547 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.5657, allocations: 24.11 kB / 0.6547 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.5672, allocations: 2.938 MB / 0.6576 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5672, allocations: 7.969 kB / 0.6576 GB, free: 3.449 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008707/0.5681, allocations: 0.5785 MB / 0.6582 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.5684, allocations: 223.7 kB / 0.6584 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.626e-05/0.5685, allocations: 11.98 kB / 0.6584 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/0.569, allocations: 63.78 kB / 0.6584 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.347e-05/0.5691, allocations: 31.84 kB / 0.6585 GB, free: 2.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/0.5692, allocations: 15.98 kB / 0.6585 GB, free: 2.484 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000752/0.5699, allocations: 0.6084 MB / 0.6591 GB, free: 1.867 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5699, allocations: 0 / 0.6591 GB, free: 1.867 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001464/0.5714, allocations: 0.5384 MB / 0.6596 GB, free: 1.328 MB / 494.1 MB 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.0006881/0.5721, allocations: 335.6 kB / 0.6599 GB, free: 1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.5746, allocations: 0.863 MB / 0.6608 GB, free: 140 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5746, allocations: 0 / 0.6608 GB, free: 140 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005899/0.5752, allocations: 240.4 kB / 0.661 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.5779, allocations: 486.4 kB / 0.6615 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.5807, allocations: 1.875 MB / 0.6633 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006588/0.5814, allocations: 1.025 MB / 0.6643 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001056/0.5825, allocations: 207 kB / 0.6645 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.5827, allocations: 83.42 kB / 0.6646 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of SimCode: time 1.263e-06/0.5827, allocations: 0 / 0.6646 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of Templates: time 0.04084/0.6235, allocations: 24.4 MB / 0.6884 GB, free: 4.195 MB / 0.5137 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)