Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009476/0.0009474, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001031/0.00103, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.222/1.222, allocations: 135.2 MB / 426.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 12 kB / 0.5069 GB, free: 5.141 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1998, allocations: 82.31 MB / 0.5873 GB, free: 3.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.5067/0.7066, allocations: 25.02 MB / 0.6117 GB, free: 34.8 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01511/0.7218, allocations: 7.049 MB / 0.6186 GB, free: 34.57 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002517/0.7243, allocations: 27.59 kB / 0.6186 GB, free: 34.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002348/0.7267, allocations: 371.1 kB / 0.619 GB, free: 34.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007519/0.7343, allocations: 1.441 MB / 0.6204 GB, free: 34.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00478/0.7391, allocations: 1.196 MB / 0.6216 GB, free: 34.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005055/0.7441, allocations: 2.107 MB / 0.6236 GB, free: 33.79 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002274/0.7464, allocations: 1.102 MB / 0.6247 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003402/0.7499, allocations: 1.281 MB / 0.6259 GB, free: 33.14 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003531/0.7534, allocations: 1.301 MB / 0.6272 GB, free: 32.82 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005581/0.754, allocations: 64.78 kB / 0.6273 GB, free: 32.82 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.7574, allocations: 0.9037 MB / 0.6282 GB, free: 32.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005687/0.758, allocations: 332.8 kB / 0.6285 GB, free: 32.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007429/0.7588, allocations: 246.3 kB / 0.6287 GB, free: 32.38 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.7608, allocations: 1.542 MB / 0.6302 GB, free: 32.14 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.7608, allocations: 0 / 0.6302 GB, free: 32.14 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.557e-06/0.7608, allocations: 4 kB / 0.6302 GB, free: 32.14 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.711e-05/0.7608, allocations: 3.938 kB / 0.6302 GB, free: 32.14 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.002159/0.763, allocations: 1.341 MB / 0.6315 GB, free: 31.24 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.763, allocations: 8.156 kB / 0.6315 GB, free: 31.24 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.875e-05/0.7631, allocations: 98.95 kB / 0.6316 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.7634, allocations: 149.5 kB / 0.6318 GB, free: 31.1 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.7651, allocations: 0.856 MB / 0.6326 GB, free: 30.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.7651, allocations: 90.08 kB / 0.6327 GB, free: 30.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.7653, allocations: 116 kB / 0.6328 GB, free: 30.58 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009189/0.7663, allocations: 0.6375 MB / 0.6334 GB, free: 30.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.7663, allocations: 0 / 0.6334 GB, free: 30.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.7663, allocations: 21.91 kB / 0.6335 GB, free: 30.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.7664, allocations: 15.06 kB / 0.6335 GB, free: 30.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.7672, allocations: 476.6 kB / 0.6339 GB, free: 30.12 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.00398/0.7711, allocations: 2.884 MB / 0.6367 GB, free: 28.33 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.7717, allocations: 317 kB / 0.637 GB, free: 28.21 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002744/0.772, allocations: 347.4 kB / 0.6374 GB, free: 27.83 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.772, allocations: 37.91 kB / 0.6374 GB, free: 27.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.772, allocations: 0 / 0.6374 GB, free: 27.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.00116/0.7732, allocations: 0.5423 MB / 0.6379 GB, free: 27.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.7733, allocations: 57.56 kB / 0.638 GB, free: 27.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.7743, allocations: 0.8943 MB / 0.6389 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000161/0.7745, allocations: 55.95 kB / 0.6389 GB, free: 27.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004658/0.7749, allocations: 0.5404 MB / 0.6395 GB, free: 26.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.775, allocations: 111.9 kB / 0.6396 GB, free: 26.6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.7751, allocations: 15.12 kB / 0.6396 GB, free: 26.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.7752, allocations: 326.8 kB / 0.6399 GB, free: 26.28 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.7756, allocations: 178 kB / 0.6401 GB, free: 26.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.7767, allocations: 1.134 MB / 0.6412 GB, free: 25.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005077/0.7772, allocations: 300.9 kB / 0.6414 GB, free: 24.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7772, allocations: 4 kB / 0.6415 GB, free: 24.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001102/0.7783, allocations: 0.6427 MB / 0.6421 GB, free: 24.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.7785, allocations: 0.8083 MB / 0.6429 GB, free: 23.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.7786, allocations: 3.375 kB / 0.6429 GB, free: 23.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.7786, allocations: 9.25 kB / 0.6429 GB, free: 23.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.78, allocations: 243.9 kB / 0.6431 GB, free: 23.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.7811, allocations: 2.952 MB / 0.646 GB, free: 20.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.7844, allocations: 0.7463 MB / 0.6467 GB, free: 20.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.44e-05/0.7845, allocations: 29.86 kB / 0.6468 GB, free: 20.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.7845, allocations: 7.156 kB / 0.6468 GB, free: 20.78 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000923/0.7855, allocations: 0.4977 MB / 0.6472 GB, free: 20.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.7855, allocations: 4.188 kB / 0.6472 GB, free: 20.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-06/0.7855, allocations: 5.812 kB / 0.6473 GB, free: 20.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.7861, allocations: 157 kB / 0.6474 GB, free: 20.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.7861, allocations: 4.594 kB / 0.6474 GB, free: 20.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.7894, allocations: 0.7364 MB / 0.6481 GB, free: 20.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.7895, allocations: 31.42 kB / 0.6482 GB, free: 20.5 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008035/0.7903, allocations: 338.2 kB / 0.6485 GB, free: 20.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003042/0.7906, allocations: 102.8 kB / 0.6486 GB, free: 20.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.792, allocations: 0.5221 MB / 0.6491 GB, free: 19.96 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.792, allocations: 5.016 kB / 0.6491 GB, free: 19.96 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.7921, allocations: 0.9375 kB / 0.6491 GB, free: 19.96 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.7921, allocations: 2.109 kB / 0.6491 GB, free: 19.96 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003266/0.7954, allocations: 1.265 MB / 0.6503 GB, free: 19.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.7954, allocations: 1.734 kB / 0.6503 GB, free: 19.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.796, allocations: 125.3 kB / 0.6505 GB, free: 19.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.796, allocations: 2.344 kB / 0.6505 GB, free: 19.29 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.7961, allocations: 16 kB / 0.6505 GB, free: 19.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.7974, allocations: 2.942 MB / 0.6533 GB, free: 16.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.7974, allocations: 1.094 kB / 0.6533 GB, free: 16.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.7987, allocations: 0.625 MB / 0.654 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005495/0.7993, allocations: 226.2 kB / 0.6542 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.7994, allocations: 7.406 kB / 0.6542 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006145/0.8, allocations: 67.78 kB / 0.6542 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.8002, allocations: 39.8 kB / 0.6543 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.8002, allocations: 15.55 kB / 0.6543 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001314/0.8016, allocations: 0.6002 MB / 0.6549 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.2e-07/0.8016, allocations: 0 / 0.6549 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00339/0.805, allocations: 0.5367 MB / 0.6554 GB, free: 15.32 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002695/0.8077, allocations: 1.656 MB / 0.657 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004108/0.8118, allocations: 0.8385 MB / 0.6578 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.8118, allocations: 4 kB / 0.6578 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.8129, allocations: 232.8 kB / 0.6581 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004723/0.8177, allocations: 477.5 kB / 0.6585 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008/0.8257, allocations: 3.562 MB / 0.662 GB, free: 27.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.827, allocations: 1.044 MB / 0.663 GB, free: 26.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001973/0.829, allocations: 214.3 kB / 0.6632 GB, free: 26.22 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004749/0.8294, allocations: 366.6 kB / 0.6636 GB, free: 25.96 MB / 0.5137 GB Notification: Performance of SimCode: time 1.633e-06/0.8295, allocations: 0 / 0.6636 GB, free: 25.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09547/0.9249, allocations: 31.68 MB / 0.6945 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002808/0.9253, allocations: 247.3 kB / 0.6947 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.876/3.801, allocations: 0 / 0.6947 GB, free: 13.21 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: