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.0009884/0.0009883, allocations: 97.95 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.005811/0.005812, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.215/1.215, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8369/0.8369, allocations: 135.3 MB / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002886, allocations: 8 kB / 0.5077 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1508, allocations: 82.3 MB / 0.5881 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.2881/0.439, allocations: 28.93 MB / 0.6163 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009941/0.449, allocations: 8.12 MB / 0.6242 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008937/0.4499, allocations: 30.66 kB / 0.6243 GB, free: 32.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007988/0.4507, allocations: 346.1 kB / 0.6246 GB, free: 32.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002574/0.4533, allocations: 1.229 MB / 0.6258 GB, free: 32.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.4555, allocations: 1.037 MB / 0.6268 GB, free: 32.06 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004154/0.4597, allocations: 4.198 MB / 0.6309 GB, free: 30.82 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.4608, allocations: 1.167 MB / 0.6321 GB, free: 30.51 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.4629, allocations: 1.487 MB / 0.6335 GB, free: 30.03 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001833/0.4647, allocations: 1.601 MB / 0.6351 GB, free: 29.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.4649, allocations: 63.19 kB / 0.6351 GB, free: 29.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.4664, allocations: 0.9326 MB / 0.636 GB, free: 29.3 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000295/0.4667, allocations: 343.4 kB / 0.6364 GB, free: 29.15 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006068/0.4673, allocations: 0.7081 MB / 0.6371 GB, free: 28.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001795/0.4691, allocations: 2.089 MB / 0.6391 GB, free: 28.23 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4691, allocations: 4 kB / 0.6391 GB, free: 28.22 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.532e-06/0.4692, allocations: 0 / 0.6391 GB, free: 28.22 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.4692, allocations: 0 / 0.6391 GB, free: 28.22 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.00186/0.471, allocations: 1.337 MB / 0.6404 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.4711, allocations: 9.625 kB / 0.6404 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.53e-05/0.4712, allocations: 106.7 kB / 0.6405 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.4714, allocations: 149.8 kB / 0.6407 GB, free: 27.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.4729, allocations: 0.8929 MB / 0.6415 GB, free: 26.65 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.149e-05/0.4729, allocations: 81.06 kB / 0.6416 GB, free: 26.62 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/0.4732, allocations: 118.6 kB / 0.6417 GB, free: 26.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000888/0.4741, allocations: 0.6416 MB / 0.6424 GB, free: 26.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.4741, allocations: 6.312 kB / 0.6424 GB, free: 26.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.505e-05/0.4742, allocations: 25.41 kB / 0.6424 GB, free: 26.28 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.4742, allocations: 21.06 kB / 0.6424 GB, free: 26.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007704/0.475, allocations: 468.5 kB / 0.6429 GB, free: 26.13 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.003692/0.4787, allocations: 2.891 MB / 0.6457 GB, free: 24.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005019/0.4792, allocations: 318.6 kB / 0.646 GB, free: 24.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.4795, allocations: 157.8 kB / 0.6461 GB, free: 24.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001932/0.4797, allocations: 340.1 kB / 0.6465 GB, free: 23.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.4797, allocations: 37.34 kB / 0.6465 GB, free: 23.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/0.4797, allocations: 0 / 0.6465 GB, free: 23.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.001092/0.4808, allocations: 0.5507 MB / 0.647 GB, free: 23.49 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.4808, allocations: 54.31 kB / 0.6471 GB, free: 23.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.482, allocations: 0.9057 MB / 0.648 GB, free: 23.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.4822, allocations: 55.8 kB / 0.648 GB, free: 23.01 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.4826, allocations: 0.5297 MB / 0.6485 GB, free: 22.58 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.4827, allocations: 118.7 kB / 0.6487 GB, free: 22.49 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/0.4828, allocations: 61.11 kB / 0.6487 GB, free: 22.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.59e-05/0.4828, allocations: 331 kB / 0.649 GB, free: 22.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.4833, allocations: 190.7 kB / 0.6492 GB, free: 22.08 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.4844, allocations: 1.157 MB / 0.6503 GB, free: 20.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008065/0.4852, allocations: 471.9 kB / 0.6508 GB, free: 20.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4852, allocations: 0 / 0.6508 GB, free: 20.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001474/0.4867, allocations: 0.6683 MB / 0.6514 GB, free: 20.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.149e-05/0.4868, allocations: 149.8 kB / 0.6516 GB, free: 20.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4868, allocations: 1.812 kB / 0.6516 GB, free: 20.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.4868, allocations: 5.5 kB / 0.6516 GB, free: 20.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.4883, allocations: 246.4 kB / 0.6518 GB, free: 20.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009515/0.4892, allocations: 2.964 MB / 0.6547 GB, free: 17.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.4929, allocations: 0.7449 MB / 0.6554 GB, free: 17.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.319e-05/0.493, allocations: 26.58 kB / 0.6555 GB, free: 17.22 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/0.493, allocations: 4.656 kB / 0.6555 GB, free: 17.22 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00096/0.494, allocations: 0.5019 MB / 0.656 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.494, allocations: 1.219 kB / 0.656 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.882e-06/0.494, allocations: 5.875 kB / 0.656 GB, free: 17.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006808/0.4947, allocations: 158.4 kB / 0.6561 GB, free: 17.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.4947, allocations: 6.547 kB / 0.6561 GB, free: 17.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/0.4982, allocations: 0.7406 MB / 0.6569 GB, free: 16.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.4982, allocations: 25.64 kB / 0.6569 GB, free: 16.93 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.0003984/0.4986, allocations: 331 kB / 0.6572 GB, free: 16.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.4987, allocations: 99.48 kB / 0.6573 GB, free: 16.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.4998, allocations: 0.5306 MB / 0.6578 GB, free: 16.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.4998, allocations: 5 kB / 0.6578 GB, free: 16.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4998, allocations: 0 / 0.6578 GB, free: 16.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.4999, allocations: 3.219 kB / 0.6578 GB, free: 16.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.502, allocations: 1.268 MB / 0.6591 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.502, allocations: 5.156 kB / 0.6591 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.5025, allocations: 119.8 kB / 0.6592 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.5026, allocations: 6.156 kB / 0.6592 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.5026, allocations: 12.33 kB / 0.6592 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007622/0.5034, allocations: 2.944 MB / 0.6621 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5034, allocations: 10.02 kB / 0.6621 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008149/0.5042, allocations: 0.5774 MB / 0.6626 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.5044, allocations: 225.1 kB / 0.6629 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.5046, allocations: 7.375 kB / 0.6629 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005568/0.5051, allocations: 69.86 kB / 0.6629 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.5052, allocations: 34.44 kB / 0.663 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.084e-05/0.5053, allocations: 15.52 kB / 0.663 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009641/0.5062, allocations: 0.6088 MB / 0.6636 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5062, allocations: 0.9688 kB / 0.6636 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00126/0.5075, allocations: 0.5367 MB / 0.6641 GB, free: 11.82 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.001535/0.5091, allocations: 1.334 MB / 0.6654 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002677/0.5117, allocations: 0.8687 MB / 0.6662 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5118, allocations: 1.031 kB / 0.6662 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005595/0.5123, allocations: 229.5 kB / 0.6665 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/0.5151, allocations: 488.6 kB / 0.6669 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.5254, allocations: 7.278 MB / 0.674 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.5259, allocations: 1.031 MB / 0.675 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001148/0.527, allocations: 217.3 kB / 0.6753 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004082/0.5275, allocations: 363.3 kB / 0.6756 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.5275, allocations: 0 / 0.6756 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07964/0.6071, allocations: 32.49 MB / 0.7073 GB, free: 1.352 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.6074, allocations: 269 kB / 0.7076 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.41, allocations: 3.938 kB / 0.7076 GB, free: 0.9922 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/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)