Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001662/0.001662, allocations: 106 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.001694/0.001694, 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.426/1.426, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2362/0.2362, 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.00276/0.00276, allocations: 91.19 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1239, allocations: 62.44 MB / 480.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03374/0.1577, allocations: 28.24 MB / 0.4965 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2542/0.4119, allocations: 13.3 MB / 0.5095 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000382/0.4123, allocations: 9.062 kB / 0.5095 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006903/0.4131, allocations: 249.8 kB / 0.5098 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00953/0.4226, allocations: 3.668 MB / 0.5134 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005879/0.4285, allocations: 2.371 MB / 0.5157 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.4297, allocations: 0.893 MB / 0.5165 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003653/0.43, allocations: 248.4 kB / 0.5168 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007234/0.4308, allocations: 444.5 kB / 0.5172 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.4311, allocations: 267.6 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.785e-05/0.4312, allocations: 32.94 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01634/0.4475, allocations: 7.068 MB / 0.5244 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.4478, allocations: 106.4 kB / 0.5245 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.4482, allocations: 213.9 kB / 0.5247 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.4589, allocations: 4.422 MB / 0.529 GB, free: 8.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4589, allocations: 0 / 0.529 GB, free: 8.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4589, allocations: 0 / 0.529 GB, free: 8.102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.4589, allocations: 4 kB / 0.529 GB, free: 8.098 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.003124/0.4621, allocations: 1.227 MB / 0.5302 GB, free: 7.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4621, allocations: 9.812 kB / 0.5302 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.774e-05/0.4622, allocations: 73.28 kB / 0.5303 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001692/0.4639, allocations: 215.9 kB / 0.5305 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.4643, allocations: 360.7 kB / 0.5308 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.4644, allocations: 28.25 kB / 0.5309 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.4644, allocations: 25.66 kB / 0.5309 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.4658, allocations: 0.5827 MB / 0.5315 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.4658, allocations: 1.375 kB / 0.5315 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.4659, allocations: 16.12 kB / 0.5315 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.4659, allocations: 8.25 kB / 0.5315 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4677, allocations: 0.5275 MB / 0.532 GB, free: 6.051 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.002532/0.4702, allocations: 2.637 MB / 0.5346 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.4717, allocations: 452 kB / 0.535 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.4721, allocations: 192.7 kB / 0.5352 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05615/0.5283, allocations: 26.77 MB / 0.5613 GB, free: 8.449 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.443e-05/0.5284, allocations: 39.44 kB / 0.5614 GB, free: 8.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.725e-06/0.5284, allocations: 4 kB / 0.5614 GB, free: 8.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003147/0.5315, allocations: 0.7862 MB / 0.5621 GB, free: 7.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.5316, allocations: 106.8 kB / 0.5622 GB, free: 7.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.5321, allocations: 316.5 kB / 0.5626 GB, free: 7.164 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.5321, allocations: 29.7 kB / 0.5626 GB, free: 7.129 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.5323, allocations: 204.2 kB / 0.5628 GB, free: 6.926 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.392e-05/0.5324, allocations: 89.95 kB / 0.5629 GB, free: 6.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.5326, allocations: 69.69 kB / 0.5629 GB, free: 6.766 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.5328, allocations: 338.8 kB / 0.5632 GB, free: 6.426 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004236/0.5332, allocations: 141.6 kB / 0.5634 GB, free: 6.289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/0.5337, allocations: 239.8 kB / 0.5636 GB, free: 6.016 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008887/0.5346, allocations: 354.5 kB / 0.564 GB, free: 5.637 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5347, allocations: 0 / 0.564 GB, free: 5.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.5357, allocations: 424.8 kB / 0.5644 GB, free: 5.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.5358, allocations: 4 kB / 0.5644 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.5358, allocations: 4.312 kB / 0.5644 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.5358, allocations: 11.94 kB / 0.5644 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.5362, allocations: 80.5 kB / 0.5645 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.5362, allocations: 7.938 kB / 0.5645 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.5365, allocations: 59.5 kB / 0.5645 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.5366, allocations: 12 kB / 0.5645 GB, free: 5.039 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: 5 (Opening.y,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.0002162/0.5368, allocations: 161.8 kB / 0.5647 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.303e-05/0.5369, allocations: 35.62 kB / 0.5647 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.5399, allocations: 1.902 MB / 0.5666 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.966e-05/0.54, allocations: 31.89 kB / 0.5666 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.54, allocations: 4.5 kB / 0.5666 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.54, allocations: 3.984 kB / 0.5666 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.5413, allocations: 1.008 MB / 0.5676 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.5413, allocations: 0 / 0.5676 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.5416, allocations: 75.88 kB / 0.5677 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.5417, allocations: 8 kB / 0.5677 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.5417, allocations: 4 kB / 0.5677 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.5417, allocations: 7.938 kB / 0.5677 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5417, allocations: 0 / 0.5677 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.5435, allocations: 1.084 MB / 0.5687 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.5437, allocations: 159.9 kB / 0.5689 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.42e-05/0.5438, allocations: 23.73 kB / 0.5689 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.544, allocations: 23.92 kB / 0.5689 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5442, allocations: 35.95 kB / 0.569 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.5442, allocations: 11.98 kB / 0.569 GB, free: 388 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004307/0.5446, allocations: 323.1 kB / 0.5693 GB, free: 68 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5446, allocations: 8 kB / 0.5693 GB, free: 60 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003653/0.5483, allocations: 0.9955 MB / 0.5703 GB, free: 15.06 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: 19 ($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,Opening.y) * 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.00887/0.5572, allocations: 2.719 MB / 0.5729 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.5591, allocations: 0.6071 MB / 0.5735 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5592, allocations: 4 kB / 0.5735 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007928/0.5599, allocations: 0.5141 MB / 0.574 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.5613, allocations: 217.4 kB / 0.5742 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.5714, allocations: 5.004 MB / 0.5791 GB, free: 5.941 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006396/0.5721, allocations: 0.9677 MB / 0.5801 GB, free: 4.949 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005573/0.5726, allocations: 270.8 kB / 0.5803 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003542/0.573, allocations: 255.4 kB / 0.5806 GB, free: 4.438 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.573, allocations: 0 / 0.5806 GB, free: 4.438 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09195/0.665, allocations: 46.61 MB / 0.6261 GB, free: 5.988 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.15, allocations: 11.52 kB / 0.6261 GB, free: 5.98 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_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_TestValveDiscrete.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)