Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.TwoWayValveTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTable",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.001059/0.001059, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7493/0.7493, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 64.2 kB / 0.5019 GB, free: 8.633 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1355, allocations: 80.2 MB / 0.5802 GB, free: 8.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01728/0.1529, allocations: 17.47 MB / 0.5973 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006484/0.1594, allocations: 4.917 MB / 0.6021 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004763/0.1599, allocations: 15.94 kB / 0.6021 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007688/0.1607, allocations: 254.4 kB / 0.6023 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.162, allocations: 0.6024 MB / 0.6029 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.1638, allocations: 0.7287 MB / 0.6036 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.2301/0.3939, allocations: 0.9645 MB / 0.6046 GB, free: 36.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005407/0.3945, allocations: 340.3 kB / 0.6049 GB, free: 36.48 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.3951, allocations: 414.2 kB / 0.6053 GB, free: 36.48 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.3955, allocations: 312.7 kB / 0.6056 GB, free: 36.47 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.3955, allocations: 27.56 kB / 0.6056 GB, free: 36.47 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.3967, allocations: 0.7279 MB / 0.6063 GB, free: 36.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.3968, allocations: 129.4 kB / 0.6064 GB, free: 36.45 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.397, allocations: 244.2 kB / 0.6067 GB, free: 36.37 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008558/0.3979, allocations: 0.871 MB / 0.6075 GB, free: 36.28 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3979, allocations: 5.438 kB / 0.6075 GB, free: 36.28 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3979, allocations: 3.469 kB / 0.6075 GB, free: 36.28 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.3979, allocations: 0 / 0.6075 GB, free: 36.28 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009523/0.3988, allocations: 0.8785 MB / 0.6084 GB, free: 35.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3989, allocations: 9.188 kB / 0.6084 GB, free: 35.7 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.856e-05/0.3989, allocations: 64.12 kB / 0.6085 GB, free: 35.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.3991, allocations: 62.84 kB / 0.6085 GB, free: 35.63 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.3995, allocations: 436.6 kB / 0.6089 GB, free: 35.38 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.3996, allocations: 27.47 kB / 0.609 GB, free: 35.37 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.3996, allocations: 33.31 kB / 0.609 GB, free: 35.37 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.4, allocations: 279.9 kB / 0.6093 GB, free: 35.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4, allocations: 1.062 kB / 0.6093 GB, free: 35.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.4001, allocations: 10.47 kB / 0.6093 GB, free: 35.29 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.4001, allocations: 8.969 kB / 0.6093 GB, free: 35.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003647/0.4004, allocations: 190.1 kB / 0.6095 GB, free: 35.29 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.001412/0.4019, allocations: 1.488 MB / 0.6109 GB, free: 34.42 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.4021, allocations: 163 kB / 0.6111 GB, free: 34.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.4023, allocations: 82.61 kB / 0.6111 GB, free: 34.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001175/0.4035, allocations: 1.283 MB / 0.6124 GB, free: 33.24 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.4035, allocations: 34.5 kB / 0.6124 GB, free: 33.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.4035, allocations: 0 / 0.6124 GB, free: 33.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005489/0.4041, allocations: 250.4 kB / 0.6127 GB, free: 33.14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.4041, allocations: 55.16 kB / 0.6127 GB, free: 33.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.4046, allocations: 0.5833 MB / 0.6133 GB, free: 32.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.4046, allocations: 32.92 kB / 0.6133 GB, free: 32.92 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.4048, allocations: 264.3 kB / 0.6136 GB, free: 32.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.4048, allocations: 57.14 kB / 0.6136 GB, free: 32.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.208e-05/0.4049, allocations: 69.86 kB / 0.6137 GB, free: 32.74 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.405, allocations: 363.1 kB / 0.614 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.4052, allocations: 79.17 kB / 0.6141 GB, free: 32.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.4054, allocations: 210.4 kB / 0.6143 GB, free: 32.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.4058, allocations: 232.9 kB / 0.6145 GB, free: 32.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4058, allocations: 0 / 0.6145 GB, free: 32.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004901/0.4063, allocations: 312 kB / 0.6148 GB, free: 32.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.4063, allocations: 10.28 kB / 0.6148 GB, free: 32.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.4063, allocations: 3.156 kB / 0.6148 GB, free: 32.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4063, allocations: 6.281 kB / 0.6149 GB, free: 32.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.4065, allocations: 60.75 kB / 0.6149 GB, free: 32.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.4066, allocations: 5.406 kB / 0.6149 GB, free: 32.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.4068, allocations: 50.16 kB / 0.615 GB, free: 32.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.4069, allocations: 10.59 kB / 0.615 GB, free: 32.11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002458/0.4071, allocations: 217.6 kB / 0.6152 GB, free: 32.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002137/0.4074, allocations: 212.2 kB / 0.6154 GB, free: 31.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003101/0.4077, allocations: 230.8 kB / 0.6156 GB, free: 31.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.4077, allocations: 2.5 kB / 0.6156 GB, free: 31.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0004773/0.4082, allocations: 315.6 kB / 0.6159 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/0.4082, allocations: 6.25 kB / 0.6159 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-06/0.4082, allocations: 3.938 kB / 0.6159 GB, free: 31.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-06/0.4082, allocations: 6.406 kB / 0.6159 GB, free: 31.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.4084, allocations: 60.52 kB / 0.616 GB, free: 31.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4084, allocations: 6.781 kB / 0.616 GB, free: 31.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.4087, allocations: 42.64 kB / 0.616 GB, free: 31.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.4088, allocations: 8.625 kB / 0.616 GB, free: 31.73 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.4088, allocations: 208.9 kB / 0.6162 GB, free: 31.54 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.4089, allocations: 49.16 kB / 0.6163 GB, free: 31.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004895/0.4094, allocations: 258.8 kB / 0.6165 GB, free: 31.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.4094, allocations: 10.09 kB / 0.6165 GB, free: 31.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4094, allocations: 0 / 0.6165 GB, free: 31.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4094, allocations: 0 / 0.6165 GB, free: 31.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008199/0.4103, allocations: 0.732 MB / 0.6173 GB, free: 31.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4103, allocations: 4.125 kB / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.4104, allocations: 32.7 kB / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.4104, allocations: 0 / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.4104, allocations: 7.094 kB / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4104, allocations: 3.156 kB / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4104, allocations: 3.375 kB / 0.6173 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003833/0.4108, allocations: 357.9 kB / 0.6176 GB, free: 30.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.411, allocations: 145.7 kB / 0.6178 GB, free: 30.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.8e-05/0.411, allocations: 6.219 kB / 0.6178 GB, free: 30.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.4112, allocations: 8.609 kB / 0.6178 GB, free: 30.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.4113, allocations: 27.41 kB / 0.6178 GB, free: 30.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.4113, allocations: 5.969 kB / 0.6178 GB, free: 30.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003568/0.4116, allocations: 419.8 kB / 0.6182 GB, free: 30.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4116, allocations: 0 / 0.6182 GB, free: 30.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006617/0.4123, allocations: 224.9 kB / 0.6184 GB, free: 30.68 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001528/0.4138, allocations: 1.276 MB / 0.6197 GB, free: 29.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005975/0.4145, allocations: 332.8 kB / 0.62 GB, free: 29.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4145, allocations: 0 / 0.62 GB, free: 29.88 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.4146, allocations: 90.67 kB / 0.6201 GB, free: 29.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.4157, allocations: 255.5 kB / 0.6203 GB, free: 29.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.4195, allocations: 4.013 MB / 0.6243 GB, free: 28.05 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.4198, allocations: 0.8484 MB / 0.6251 GB, free: 27.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002995/0.4201, allocations: 101.8 kB / 0.6252 GB, free: 27.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.4202, allocations: 167.2 kB / 0.6253 GB, free: 27.31 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.4202, allocations: 0 / 0.6253 GB, free: 27.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.45, allocations: 14.87 MB / 0.6399 GB, free: 25.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.165/7.615, allocations: 6.734 kB / 0.6399 GB, free: 25.92 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)