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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_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.0008178/0.0008178, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0008126/0.000813, allocations: 172.7 kB / 15.95 MB, free: 208 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.352/1.352, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7261/0.7261, allocations: 132.3 MB / 423.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003643, allocations: 8.219 kB / 0.5035 GB, free: 4.145 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5022/0.5026, allocations: 81.58 MB / 0.5832 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02892/0.5316, allocations: 27.4 MB / 0.6099 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.544, allocations: 7.661 MB / 0.6174 GB, free: 9.742 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.5456, allocations: 23.44 kB / 0.6174 GB, free: 9.73 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.5468, allocations: 309.2 kB / 0.6177 GB, free: 9.473 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003982/0.5508, allocations: 1.077 MB / 0.6188 GB, free: 8.609 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003636/0.5544, allocations: 0.9692 MB / 0.6197 GB, free: 7.941 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.006416/0.5609, allocations: 3.526 MB / 0.6232 GB, free: 5.824 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002254/0.5631, allocations: 1.081 MB / 0.6242 GB, free: 5.125 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003661/0.5668, allocations: 1.465 MB / 0.6256 GB, free: 4.438 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003589/0.5704, allocations: 1.559 MB / 0.6272 GB, free: 3.418 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004242/0.5709, allocations: 64 kB / 0.6272 GB, free: 3.355 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002554/0.5734, allocations: 0.8656 MB / 0.6281 GB, free: 2.488 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004859/0.5739, allocations: 330.8 kB / 0.6284 GB, free: 2.164 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005943/0.5745, allocations: 249.1 kB / 0.6286 GB, free: 1.914 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002147/0.5767, allocations: 1.538 MB / 0.6301 GB, free: 384 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.5767, allocations: 0 / 0.6301 GB, free: 384 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5767, allocations: 4 kB / 0.6301 GB, free: 380 kB / 462.1 MB Notification: Performance of Transformations before backend: time 2.141e-05/0.5767, allocations: 0 / 0.6301 GB, free: 380 kB / 462.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.002746/0.5795, allocations: 1.344 MB / 0.6314 GB, free: 14.97 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.5795, allocations: 8.031 kB / 0.6315 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.5797, allocations: 102.5 kB / 0.6316 GB, free: 14.86 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003878/0.5801, allocations: 154.5 kB / 0.6317 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/0.5821, allocations: 0.8566 MB / 0.6325 GB, free: 13.79 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.5822, allocations: 81.31 kB / 0.6326 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/0.5825, allocations: 119.9 kB / 0.6327 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.5835, allocations: 0.6318 MB / 0.6333 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.5836, allocations: 3.938 kB / 0.6333 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.718e-05/0.5836, allocations: 24 kB / 0.6334 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.5836, allocations: 12 kB / 0.6334 GB, free: 12.89 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009315/0.5846, allocations: 476.9 kB / 0.6338 GB, free: 12.43 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.004714/0.5893, allocations: 2.875 MB / 0.6366 GB, free: 9.398 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007686/0.5901, allocations: 323.7 kB / 0.637 GB, free: 9.074 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.5905, allocations: 149.3 kB / 0.6371 GB, free: 8.926 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006664/0.5912, allocations: 348.7 kB / 0.6374 GB, free: 8.512 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.5912, allocations: 34.84 kB / 0.6375 GB, free: 8.469 MB / 478.1 MB Notification: Performance of pre-optimization done (n=33): time 2.475e-06/0.5912, allocations: 0 / 0.6375 GB, free: 8.469 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.001461/0.5927, allocations: 0.5489 MB / 0.638 GB, free: 7.914 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.5927, allocations: 59.36 kB / 0.6381 GB, free: 7.844 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.5938, allocations: 0.8958 MB / 0.6389 GB, free: 6.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.5939, allocations: 57.7 kB / 0.639 GB, free: 6.867 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007239/0.5947, allocations: 0.538 MB / 0.6395 GB, free: 6.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003013/0.595, allocations: 110.4 kB / 0.6396 GB, free: 6.211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.595, allocations: 8 kB / 0.6396 GB, free: 6.203 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003245/0.5953, allocations: 338 kB / 0.6399 GB, free: 5.867 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004432/0.5958, allocations: 173.2 kB / 0.6401 GB, free: 5.699 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001918/0.5977, allocations: 1.143 MB / 0.6412 GB, free: 4.195 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005164/0.5983, allocations: 310.7 kB / 0.6415 GB, free: 3.891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.5983, allocations: 0 / 0.6415 GB, free: 3.891 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001186/0.5995, allocations: 0.646 MB / 0.6422 GB, free: 3.238 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.5996, allocations: 152.3 kB / 0.6423 GB, free: 3.062 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.5996, allocations: 8 kB / 0.6423 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.5996, allocations: 4 kB / 0.6423 GB, free: 3.051 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.6009, allocations: 239.7 kB / 0.6425 GB, free: 2.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.6031, allocations: 2.954 MB / 0.6454 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/0.6061, allocations: 0.7495 MB / 0.6462 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.6062, allocations: 31.98 kB / 0.6462 GB, free: 14.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.6063, allocations: 4 kB / 0.6462 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00095/0.6072, allocations: 0.5011 MB / 0.6467 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.6072, allocations: 0 / 0.6467 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.843e-06/0.6073, allocations: 8 kB / 0.6467 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.6079, allocations: 155.8 kB / 0.6468 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.6079, allocations: 4 kB / 0.6468 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/0.6107, allocations: 0.7456 MB / 0.6476 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.6107, allocations: 27.98 kB / 0.6476 GB, free: 13.52 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 (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.0005294/0.6113, allocations: 329.9 kB / 0.6479 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.6114, allocations: 98.77 kB / 0.648 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.6125, allocations: 0.5126 MB / 0.6485 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.6125, allocations: 15.98 kB / 0.6485 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.6125, allocations: 3.938 kB / 0.6485 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.6125, allocations: 0 / 0.6485 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.6147, allocations: 1.26 MB / 0.6498 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.6147, allocations: 4 kB / 0.6498 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.6152, allocations: 119.8 kB / 0.6499 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.66e-05/0.6152, allocations: 12.11 kB / 0.6499 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.6153, allocations: 8 kB / 0.6499 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.6168, allocations: 2.953 MB / 0.6528 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.6168, allocations: 0 / 0.6528 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.6176, allocations: 0.5778 MB / 0.6533 GB, free: 7.406 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/0.618, allocations: 231.8 kB / 0.6536 GB, free: 7.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/0.6181, allocations: 8 kB / 0.6536 GB, free: 7.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.6186, allocations: 59.88 kB / 0.6536 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.6187, allocations: 31.89 kB / 0.6537 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.6187, allocations: 19.98 kB / 0.6537 GB, free: 7.043 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008141/0.6196, allocations: 0.6006 MB / 0.6543 GB, free: 6.434 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6196, allocations: 0 / 0.6543 GB, free: 6.434 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00154/0.6211, allocations: 0.5345 MB / 0.6548 GB, free: 5.898 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 (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.001907/0.623, allocations: 1.326 MB / 0.6561 GB, free: 4.547 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.6255, allocations: 0.8394 MB / 0.6569 GB, free: 3.715 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.6256, allocations: 384 / 0.6569 GB, free: 3.715 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005584/0.6261, allocations: 251.5 kB / 0.6571 GB, free: 3.469 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.6285, allocations: 480 kB / 0.6576 GB, free: 3.004 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008902/0.6374, allocations: 5.069 MB / 0.6625 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.6381, allocations: 1.021 MB / 0.6635 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00118/0.6392, allocations: 218.9 kB / 0.6638 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004545/0.6397, allocations: 363.3 kB / 0.6641 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of SimCode: time 8.51e-07/0.6397, allocations: 0 / 0.6641 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06282/0.7025, allocations: 32.24 MB / 0.6956 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/0.7028, allocations: 243.2 kB / 0.6958 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.677/3.38, allocations: 0 / 0.6958 GB, free: 12.13 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: