Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.0009646/0.0009645, allocations: 91.81 kB / 16.98 MB, free: 5.941 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.0008942/0.0008942, allocations: 180.8 kB / 17.88 MB, free: 5.609 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.38/1.38, allocations: 223.2 MB / 241.8 MB, free: 412 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2124/0.2124, allocations: 44.23 MB / 337.1 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004113/0.0004115, allocations: 8.5 kB / 409.6 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1122, allocations: 61.91 MB / 471.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.02564/0.1379, allocations: 24.15 MB / 495.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01805/0.156, allocations: 14.78 MB / 0.4985 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005676/0.1566, allocations: 15.88 kB / 0.4985 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008743/0.1575, allocations: 266.8 kB / 0.4988 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01038/0.1679, allocations: 3.535 MB / 0.5022 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00729/0.1752, allocations: 2.485 MB / 0.5046 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2427/0.4179, allocations: 0.5852 MB / 0.5052 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006539/0.4186, allocations: 218.9 kB / 0.5054 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.4198, allocations: 451.5 kB / 0.5059 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006196/0.426, allocations: 2.948 MB / 0.5087 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.4261, allocations: 17.34 kB / 0.5088 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01775/0.4439, allocations: 7.284 MB / 0.5159 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002653/0.4442, allocations: 85.27 kB / 0.5159 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002773/0.4445, allocations: 114.8 kB / 0.5161 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009487/0.454, allocations: 3.11 MB / 0.5191 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.454, allocations: 1.656 kB / 0.5191 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.454, allocations: 0 / 0.5191 GB, free: 13.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.454, allocations: 0 / 0.5191 GB, free: 13.94 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004369/0.4584, allocations: 1.254 MB / 0.5203 GB, free: 13.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.4584, allocations: 10.81 kB / 0.5203 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.018e-05/0.4585, allocations: 68.53 kB / 0.5204 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001854/0.4604, allocations: 248.2 kB / 0.5206 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.4609, allocations: 379.1 kB / 0.521 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.4609, allocations: 29.69 kB / 0.521 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.461, allocations: 28.31 kB / 0.521 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.4624, allocations: 0.6237 MB / 0.5217 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.4625, allocations: 3.094 kB / 0.5217 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.4625, allocations: 17.39 kB / 0.5217 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.4625, allocations: 4.906 kB / 0.5217 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.464, allocations: 0.605 MB / 0.5223 GB, free: 12.77 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.002709/0.4667, allocations: 2.655 MB / 0.5249 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.4682, allocations: 496.4 kB / 0.5253 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0464/0.5146, allocations: 24.43 MB / 0.5492 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.5147, allocations: 38.5 kB / 0.5492 GB, free: 5.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.5147, allocations: 7.656 kB / 0.5492 GB, free: 5.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002894/0.5176, allocations: 0.8759 MB / 0.5501 GB, free: 4.438 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.658e-05/0.5177, allocations: 106.8 kB / 0.5502 GB, free: 4.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.5182, allocations: 369.5 kB / 0.5505 GB, free: 4.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.5182, allocations: 28.83 kB / 0.5506 GB, free: 3.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.5184, allocations: 218.2 kB / 0.5508 GB, free: 3.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/0.5185, allocations: 87.22 kB / 0.5509 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/0.5185, allocations: 5.25 kB / 0.5509 GB, free: 3.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5186, allocations: 352.6 kB / 0.5512 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.519, allocations: 168.6 kB / 0.5514 GB, free: 3.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.5195, allocations: 274.4 kB / 0.5516 GB, free: 3.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004577/0.52, allocations: 192.2 kB / 0.5518 GB, free: 2.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.52, allocations: 0 / 0.5518 GB, free: 2.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001089/0.5211, allocations: 0.4982 MB / 0.5523 GB, free: 2.527 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004806/0.5216, allocations: 1.046 MB / 0.5533 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.5216, allocations: 4 kB / 0.5533 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.5217, allocations: 7.953 kB / 0.5533 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.5221, allocations: 116.5 kB / 0.5534 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.5221, allocations: 4 kB / 0.5534 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.5226, allocations: 70.59 kB / 0.5535 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.5227, allocations: 20.55 kB / 0.5535 GB, free: 1.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.5227, allocations: 4 kB / 0.5535 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009835/0.5237, allocations: 440.7 kB / 0.554 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.5237, allocations: 4 kB / 0.554 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.812e-06/0.5237, allocations: 7.984 kB / 0.554 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.5241, allocations: 110.1 kB / 0.5541 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.5241, allocations: 5.969 kB / 0.5541 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.5245, allocations: 78.73 kB / 0.5542 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.5245, allocations: 18.95 kB / 0.5542 GB, free: 0.7188 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,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 initialization (38): * Single equations (assignments): 38 * 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.0003098/0.5248, allocations: 242.6 kB / 0.5544 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-05/0.5249, allocations: 36.12 kB / 0.5544 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002599/0.5275, allocations: 2.014 MB / 0.5564 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-05/0.5276, allocations: 27.58 kB / 0.5564 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5276, allocations: 0 / 0.5564 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.5276, allocations: 4.547 kB / 0.5564 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.5286, allocations: 1.05 MB / 0.5575 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5287, allocations: 0 / 0.5575 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.529, allocations: 95.73 kB / 0.5576 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/0.529, allocations: 5.094 kB / 0.5576 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.5291, allocations: 7.688 kB / 0.5576 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5291, allocations: 3.562 kB / 0.5576 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5291, allocations: 0 / 0.5576 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.5306, allocations: 1.153 MB / 0.5587 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.5309, allocations: 266.7 kB / 0.5589 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.531, allocations: 14.67 kB / 0.559 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/0.5313, allocations: 41.19 kB / 0.559 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.5314, allocations: 35.33 kB / 0.559 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.5315, allocations: 15.36 kB / 0.559 GB, free: 13.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004291/0.5319, allocations: 370.8 kB / 0.5594 GB, free: 12.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5319, allocations: 0 / 0.5594 GB, free: 12.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004991/0.5369, allocations: 1.156 MB / 0.5605 GB, free: 11.67 MB / 414.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 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.009955/0.5469, allocations: 2.86 MB / 0.5633 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.5488, allocations: 0.9052 MB / 0.5642 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5488, allocations: 0 / 0.5642 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006575/0.5495, allocations: 0.5383 MB / 0.5647 GB, free: 8.312 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.5508, allocations: 222.6 kB / 0.5649 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006403/0.5572, allocations: 4.412 MB / 0.5693 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/0.5578, allocations: 0.9938 MB / 0.5702 GB, free: 2.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000941/0.5588, allocations: 0.6073 MB / 0.5708 GB, free: 2.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.5591, allocations: 273.1 kB / 0.5711 GB, free: 2.277 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5591, allocations: 3 kB / 0.5711 GB, free: 2.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07993/0.639, allocations: 48.47 MB / 0.6184 GB, free: 2.203 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/0.6393, allocations: 232.6 kB / 0.6186 GB, free: 1.969 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/4.932, allocations: 0 / 0.6186 GB, free: 1.969 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat