Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.0008203/0.0008203, allocations: 93.48 kB / 17 MB, free: 6.07 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.0009214/0.0009215, allocations: 179.5 kB / 17.89 MB, free: 5.668 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.352/1.352, allocations: 223.2 MB / 241.9 MB, free: 14.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1945/0.1945, allocations: 44.22 MB / 337.2 MB, free: 2.562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003225, allocations: 8.219 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1151, allocations: 61.93 MB / 471.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02657/0.1417, allocations: 26.15 MB / 497.8 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01509/0.1569, allocations: 12.41 MB / 0.4983 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004405/0.1574, allocations: 7.938 kB / 0.4983 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006576/0.158, allocations: 206.8 kB / 0.4985 GB, free: 6.719 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007922/0.166, allocations: 2.853 MB / 0.5013 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006039/0.172, allocations: 1.841 MB / 0.503 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.1736, allocations: 0.986 MB / 0.504 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.174, allocations: 197 kB / 0.5042 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000809/0.1749, allocations: 394.3 kB / 0.5046 GB, free: 472 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003305/0.1752, allocations: 258.9 kB / 0.5048 GB, free: 212 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.1753, allocations: 16 kB / 0.5048 GB, free: 196 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.254/0.4293, allocations: 6.813 MB / 0.5115 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002707/0.4296, allocations: 78.53 kB / 0.5116 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003182/0.4299, allocations: 106.9 kB / 0.5117 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008204/0.4381, allocations: 2.959 MB / 0.5146 GB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4382, allocations: 4.531 kB / 0.5146 GB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4382, allocations: 0 / 0.5146 GB, free: 15.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.4382, allocations: 0.5 kB / 0.5146 GB, free: 15.41 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.004964/0.4432, allocations: 1.183 MB / 0.5157 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4432, allocations: 9.062 kB / 0.5157 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.061e-05/0.4433, allocations: 63.28 kB / 0.5158 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/0.445, allocations: 220.6 kB / 0.516 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.4455, allocations: 361.7 kB / 0.5163 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.4456, allocations: 25.75 kB / 0.5164 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.4456, allocations: 29.16 kB / 0.5164 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.4471, allocations: 0.6049 MB / 0.517 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4472, allocations: 7.688 kB / 0.517 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.4472, allocations: 15.22 kB / 0.517 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.4472, allocations: 11.78 kB / 0.517 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.4488, allocations: 0.5851 MB / 0.5176 GB, free: 14.27 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.002732/0.4516, allocations: 2.641 MB / 0.5202 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.4531, allocations: 0.4988 MB / 0.5207 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.4536, allocations: 219.1 kB / 0.5209 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04194/0.4955, allocations: 24.42 MB / 0.5447 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/0.4956, allocations: 37.77 kB / 0.5448 GB, free: 10.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.244e-06/0.4956, allocations: 0 / 0.5448 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003024/0.4986, allocations: 0.8869 MB / 0.5456 GB, free: 9.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.4987, allocations: 109.1 kB / 0.5457 GB, free: 9.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.4992, allocations: 317.3 kB / 0.546 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.4992, allocations: 25.7 kB / 0.546 GB, free: 9.527 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.4994, allocations: 205.4 kB / 0.5462 GB, free: 9.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.4994, allocations: 84.48 kB / 0.5463 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.4995, allocations: 6.812 kB / 0.5463 GB, free: 9.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4996, allocations: 345.9 kB / 0.5467 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000403/0.5, allocations: 168 kB / 0.5468 GB, free: 8.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.5005, allocations: 258.2 kB / 0.5471 GB, free: 8.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003948/0.5009, allocations: 180.4 kB / 0.5472 GB, free: 8.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5009, allocations: 0 / 0.5472 GB, free: 8.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009533/0.5019, allocations: 493 kB / 0.5477 GB, free: 8.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.5019, allocations: 4 kB / 0.5477 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.5019, allocations: 4 kB / 0.5477 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5019, allocations: 4 kB / 0.5477 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.5023, allocations: 99.03 kB / 0.5478 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.5023, allocations: 8.984 kB / 0.5478 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.5027, allocations: 62.89 kB / 0.5479 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.5028, allocations: 14.75 kB / 0.5479 GB, free: 7.914 MB / 398.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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001911/0.503, allocations: 178.4 kB / 0.5481 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.503, allocations: 35.62 kB / 0.5481 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/0.5053, allocations: 1.965 MB / 0.55 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.919e-05/0.5053, allocations: 32.94 kB / 0.5501 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5053, allocations: 4 kB / 0.5501 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.5053, allocations: 0 / 0.5501 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009952/0.5063, allocations: 1.018 MB / 0.5511 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5064, allocations: 0 / 0.5511 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000325/0.5067, allocations: 95.05 kB / 0.5511 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5067, allocations: 0 / 0.5511 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.5067, allocations: 7.25 kB / 0.5511 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.5067, allocations: 0 / 0.5511 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5067, allocations: 3 kB / 0.5512 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.5082, allocations: 1.13 MB / 0.5523 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.5083, allocations: 222.6 kB / 0.5525 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.5084, allocations: 2.25 kB / 0.5525 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.5087, allocations: 55.08 kB / 0.5525 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.386e-05/0.5088, allocations: 35.05 kB / 0.5526 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.5088, allocations: 11.25 kB / 0.5526 GB, free: 4.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003251/0.5092, allocations: 325.2 kB / 0.5529 GB, free: 4.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5092, allocations: 5.75 kB / 0.5529 GB, free: 4.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004035/0.5132, allocations: 0.9909 MB / 0.5539 GB, free: 3.211 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007663/0.5209, allocations: 2.755 MB / 0.5565 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.5221, allocations: 0.6495 MB / 0.5572 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5221, allocations: 4 kB / 0.5572 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000661/0.5228, allocations: 0.5343 MB / 0.5577 GB, free: 112 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.5239, allocations: 200.3 kB / 0.5579 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008468/0.5324, allocations: 3.712 MB / 0.5615 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008134/0.5333, allocations: 0.9626 MB / 0.5625 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007895/0.5341, allocations: 281.6 kB / 0.5627 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.5345, allocations: 254.5 kB / 0.563 GB, free: 11.41 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5345, allocations: 0 / 0.563 GB, free: 11.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08113/0.6156, allocations: 46.33 MB / 0.6082 GB, free: 13.46 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.6159, allocations: 243.6 kB / 0.6084 GB, free: 13.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.146/4.762, allocations: 0 / 0.6084 GB, free: 13.22 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat