Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.00106/0.00106, 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.001247/0.001247, allocations: 196.4 kB / 16.53 MB, free: 6.391 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.884/0.884, allocations: 135.1 MB / 425.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 60.84 kB / 0.5054 GB, free: 5.199 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1289, allocations: 80.92 MB / 0.5845 GB, free: 4.434 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01435/0.1432, allocations: 15.54 MB / 0.5996 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005472/0.1487, allocations: 4.342 MB / 0.6039 GB, free: 480 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/0.1492, allocations: 11.94 kB / 0.6039 GB, free: 468 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007851/0.15, allocations: 254.3 kB / 0.6041 GB, free: 212 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.2256/0.3756, allocations: 0.6073 MB / 0.6047 GB, free: 36.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.3772, allocations: 0.6993 MB / 0.6054 GB, free: 36.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009139/0.3781, allocations: 1.025 MB / 0.6064 GB, free: 36.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003964/0.3785, allocations: 334.1 kB / 0.6067 GB, free: 36.29 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005525/0.3791, allocations: 419.1 kB / 0.6071 GB, free: 36.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.3794, allocations: 325.4 kB / 0.6074 GB, free: 36.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.3795, allocations: 28.19 kB / 0.6075 GB, free: 36.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009248/0.3804, allocations: 0.6228 MB / 0.6081 GB, free: 36.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.3805, allocations: 102.5 kB / 0.6082 GB, free: 36.22 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.3807, allocations: 224.8 kB / 0.6084 GB, free: 36.14 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007443/0.3815, allocations: 0.7643 MB / 0.6091 GB, free: 36.05 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3815, allocations: 6.281 kB / 0.6091 GB, free: 36.05 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3815, allocations: 0 / 0.6091 GB, free: 36.05 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.3815, allocations: 3.938 kB / 0.6092 GB, free: 36.04 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009419/0.3824, allocations: 0.8275 MB / 0.61 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3825, allocations: 9.656 kB / 0.61 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.3825, allocations: 59.48 kB / 0.61 GB, free: 35.43 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.497e-05/0.3826, allocations: 53.33 kB / 0.6101 GB, free: 35.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.383, allocations: 420 kB / 0.6105 GB, free: 35.15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3831, allocations: 19.12 kB / 0.6105 GB, free: 35.15 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.3831, allocations: 30.66 kB / 0.6105 GB, free: 35.15 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003647/0.3835, allocations: 206.5 kB / 0.6107 GB, free: 35.12 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3835, allocations: 0 / 0.6107 GB, free: 35.12 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.3835, allocations: 7.062 kB / 0.6107 GB, free: 35.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3835, allocations: 8.781 kB / 0.6107 GB, free: 35.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003327/0.3839, allocations: 169.8 kB / 0.6109 GB, free: 35.11 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.001251/0.3851, allocations: 0.9544 MB / 0.6118 GB, free: 34.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.3854, allocations: 127.8 kB / 0.612 GB, free: 34.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.3855, allocations: 73.81 kB / 0.612 GB, free: 34.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.3857, allocations: 340.3 kB / 0.6123 GB, free: 34.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.3857, allocations: 34.38 kB / 0.6124 GB, free: 34.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.3858, allocations: 2.625 kB / 0.6124 GB, free: 34.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005431/0.3863, allocations: 234 kB / 0.6126 GB, free: 34.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/0.3863, allocations: 54.25 kB / 0.6127 GB, free: 34.09 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.3867, allocations: 473 kB / 0.6131 GB, free: 33.97 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.3868, allocations: 35.98 kB / 0.6131 GB, free: 33.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3869, allocations: 231.1 kB / 0.6134 GB, free: 33.83 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.3869, allocations: 45.06 kB / 0.6134 GB, free: 33.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.748e-05/0.387, allocations: 64.33 kB / 0.6135 GB, free: 33.78 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.925e-05/0.3871, allocations: 357.4 kB / 0.6138 GB, free: 33.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.3872, allocations: 77.22 kB / 0.6139 GB, free: 33.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.3874, allocations: 151.2 kB / 0.614 GB, free: 33.38 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.3878, allocations: 161.3 kB / 0.6142 GB, free: 33.35 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3878, allocations: 0 / 0.6142 GB, free: 33.35 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000438/0.3882, allocations: 259 kB / 0.6144 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3882, allocations: 9.766 kB / 0.6144 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3883, allocations: 4.5 kB / 0.6144 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3883, allocations: 0 / 0.6144 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3885, allocations: 43.5 kB / 0.6145 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3885, allocations: 3.484 kB / 0.6145 GB, free: 33.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.3888, allocations: 39.91 kB / 0.6145 GB, free: 33.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.3888, allocations: 15.75 kB / 0.6145 GB, free: 33.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002315/0.3891, allocations: 188.6 kB / 0.6147 GB, free: 33.19 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001945/0.3893, allocations: 162.8 kB / 0.6149 GB, free: 33.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002828/0.3896, allocations: 174.1 kB / 0.615 GB, free: 33.06 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.725e-06/0.3896, allocations: 10.48 kB / 0.615 GB, free: 33.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004232/0.39, allocations: 247.8 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.893e-06/0.39, allocations: 6.656 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-06/0.39, allocations: 2.906 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-06/0.39, allocations: 2.969 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3902, allocations: 45.25 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.3902, allocations: 3.656 kB / 0.6153 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.3905, allocations: 30.92 kB / 0.6154 GB, free: 33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.3906, allocations: 14.47 kB / 0.6154 GB, free: 33 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.068e-05/0.3907, allocations: 201.2 kB / 0.6156 GB, free: 32.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.3907, allocations: 45.86 kB / 0.6156 GB, free: 32.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004756/0.3912, allocations: 247.9 kB / 0.6159 GB, free: 32.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3912, allocations: 0 / 0.6159 GB, free: 32.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3912, allocations: 7.062 kB / 0.6159 GB, free: 32.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3912, allocations: 7.359 kB / 0.6159 GB, free: 32.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.392, allocations: 0.7002 MB / 0.6166 GB, free: 32.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.392, allocations: 0 / 0.6166 GB, free: 32.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3922, allocations: 31.47 kB / 0.6166 GB, free: 32.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3922, allocations: 7.562 kB / 0.6166 GB, free: 32.39 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3922, allocations: 2.062 kB / 0.6166 GB, free: 32.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3922, allocations: 10.28 kB / 0.6166 GB, free: 32.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3922, allocations: 0 / 0.6166 GB, free: 32.38 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.3926, allocations: 350 kB / 0.6169 GB, free: 32.19 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.976e-05/0.3927, allocations: 130.7 kB / 0.6171 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.3927, allocations: 6.156 kB / 0.6171 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.3929, allocations: 16.72 kB / 0.6171 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.393, allocations: 15.56 kB / 0.6171 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.393, allocations: 6.438 kB / 0.6171 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002681/0.3933, allocations: 338.6 kB / 0.6174 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3933, allocations: 0 / 0.6174 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005883/0.3939, allocations: 200.6 kB / 0.6176 GB, free: 31.95 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 (16): * Single equations (assignments): 14 * 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.00139/0.3953, allocations: 1.254 MB / 0.6188 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005847/0.3959, allocations: 270.8 kB / 0.6191 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3959, allocations: 0 / 0.6191 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3961, allocations: 89.94 kB / 0.6192 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3971, allocations: 197.4 kB / 0.6194 GB, free: 31.12 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.4006, allocations: 3.378 MB / 0.6227 GB, free: 29.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.4008, allocations: 0.8304 MB / 0.6235 GB, free: 28.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002819/0.4011, allocations: 93.09 kB / 0.6236 GB, free: 28.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.4012, allocations: 138.2 kB / 0.6237 GB, free: 28.81 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.4012, allocations: 0 / 0.6237 GB, free: 28.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.4326, allocations: 12.67 MB / 0.6361 GB, free: 27.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.721, allocations: 9.688 kB / 0.6361 GB, free: 27.51 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)