Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001345/0.001345, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.8 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2299/0.2299, allocations: 46.12 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00225/0.002251, allocations: 90.48 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1174, allocations: 62.44 MB / 480.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03279/0.1502, allocations: 28.27 MB / 0.4966 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2308/0.381, allocations: 13.3 MB / 0.5096 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.3814, allocations: 12.28 kB / 0.5096 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007197/0.3822, allocations: 254.1 kB / 0.5098 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009432/0.3917, allocations: 3.661 MB / 0.5134 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006072/0.3978, allocations: 2.372 MB / 0.5157 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.3989, allocations: 0.9005 MB / 0.5166 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.3993, allocations: 247.1 kB / 0.5168 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007491/0.4001, allocations: 443.1 kB / 0.5172 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.4004, allocations: 277 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.992e-05/0.4005, allocations: 33.94 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0151/0.4156, allocations: 7.066 MB / 0.5244 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.4158, allocations: 100.1 kB / 0.5245 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004134/0.4163, allocations: 227.5 kB / 0.5247 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.4283, allocations: 4.418 MB / 0.5291 GB, free: 8.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4284, allocations: 0 / 0.5291 GB, free: 8.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4284, allocations: 0 / 0.5291 GB, free: 8.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.4284, allocations: 0 / 0.5291 GB, free: 8.078 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003956/0.4324, allocations: 1.252 MB / 0.5303 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4324, allocations: 16.73 kB / 0.5303 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.865e-05/0.4325, allocations: 66.45 kB / 0.5304 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.4342, allocations: 217.6 kB / 0.5306 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.4348, allocations: 361.2 kB / 0.5309 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.4348, allocations: 22.78 kB / 0.5309 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.77e-05/0.4349, allocations: 30.25 kB / 0.531 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.4364, allocations: 0.5963 MB / 0.5315 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.4364, allocations: 0 / 0.5315 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.4365, allocations: 13.5 kB / 0.5316 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.4365, allocations: 11.84 kB / 0.5316 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.4381, allocations: 0.5464 MB / 0.5321 GB, free: 5.996 MB / 382.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.002692/0.4408, allocations: 2.628 MB / 0.5347 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.4423, allocations: 469.2 kB / 0.5351 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.4428, allocations: 207.9 kB / 0.5353 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0553/0.4981, allocations: 26.76 MB / 0.5614 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.4982, allocations: 43.44 kB / 0.5615 GB, free: 8.316 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.424e-06/0.4982, allocations: 0 / 0.5615 GB, free: 8.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003156/0.5014, allocations: 0.8213 MB / 0.5623 GB, free: 7.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/0.5015, allocations: 106.8 kB / 0.5624 GB, free: 7.359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.5019, allocations: 312.5 kB / 0.5627 GB, free: 7.051 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.5019, allocations: 29.7 kB / 0.5627 GB, free: 7.016 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.5021, allocations: 208.2 kB / 0.5629 GB, free: 6.809 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.963e-05/0.5022, allocations: 81.73 kB / 0.563 GB, free: 6.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.5023, allocations: 69.59 kB / 0.5631 GB, free: 6.656 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.5025, allocations: 344.4 kB / 0.5634 GB, free: 6.312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.5029, allocations: 157.7 kB / 0.5635 GB, free: 6.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005264/0.5035, allocations: 239.8 kB / 0.5638 GB, free: 5.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000948/0.5044, allocations: 377 kB / 0.5641 GB, free: 5.484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.5044, allocations: 0 / 0.5641 GB, free: 5.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001141/0.5056, allocations: 448.7 kB / 0.5646 GB, free: 5.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.5056, allocations: 4 kB / 0.5646 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.5056, allocations: 4 kB / 0.5646 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.5057, allocations: 7.938 kB / 0.5646 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.506, allocations: 92.69 kB / 0.5647 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.5061, allocations: 7.938 kB / 0.5647 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.5064, allocations: 51.66 kB / 0.5647 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.5064, allocations: 17.42 kB / 0.5647 GB, free: 4.859 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 0.0002023/0.5066, allocations: 157.8 kB / 0.5649 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.5067, allocations: 35.62 kB / 0.5649 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.5095, allocations: 1.928 MB / 0.5668 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-05/0.5095, allocations: 31.89 kB / 0.5668 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.5095, allocations: 0.6875 kB / 0.5668 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.5096, allocations: 3.984 kB / 0.5668 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.5108, allocations: 1.017 MB / 0.5678 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5108, allocations: 0 / 0.5678 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.5111, allocations: 83.86 kB / 0.5679 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.5111, allocations: 0 / 0.5679 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.5112, allocations: 12 kB / 0.5679 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.5112, allocations: 3.938 kB / 0.5679 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5112, allocations: 0 / 0.5679 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.513, allocations: 1.096 MB / 0.569 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.5131, allocations: 163.8 kB / 0.5692 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.5132, allocations: 23.75 kB / 0.5692 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5135, allocations: 27.91 kB / 0.5692 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.5136, allocations: 35.95 kB / 0.5692 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.5137, allocations: 15.92 kB / 0.5692 GB, free: 152 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004173/0.5141, allocations: 327.6 kB / 0.5696 GB, free: 15.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5141, allocations: 0 / 0.5696 GB, free: 15.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003579/0.5177, allocations: 0.9994 MB / 0.5705 GB, free: 14.83 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.008958/0.5266, allocations: 2.733 MB / 0.5732 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.5287, allocations: 0.6301 MB / 0.5738 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.5287, allocations: 0 / 0.5738 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008546/0.5296, allocations: 0.517 MB / 0.5743 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.531, allocations: 240.1 kB / 0.5746 GB, free: 10.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.5415, allocations: 5.065 MB / 0.5795 GB, free: 5.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.5422, allocations: 0.9638 MB / 0.5804 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006164/0.5428, allocations: 274.8 kB / 0.5807 GB, free: 4.332 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.5431, allocations: 259.3 kB / 0.581 GB, free: 4.078 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5432, allocations: 0 / 0.581 GB, free: 4.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09311/0.6363, allocations: 46.79 MB / 0.6266 GB, free: 5.457 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.11, allocations: 4.062 kB / 0.6266 GB, free: 5.453 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1)