Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.0009142/0.0009142, allocations: 90.34 kB / 17.35 MB, free: 6.352 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.0009963/0.0009963, allocations: 172.3 kB / 18.25 MB, free: 5.512 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.243/1.243, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.1821/0.1821, allocations: 44.25 MB / 337.7 MB, free: 2.43 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002722, allocations: 8 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09736, allocations: 61.92 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0279/0.1253, allocations: 28.29 MB / 0.4889 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.1407, allocations: 14.04 MB / 0.5026 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004267/0.1412, allocations: 7.938 kB / 0.5026 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006855/0.1419, allocations: 222.8 kB / 0.5028 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2145/0.3564, allocations: 2.906 MB / 0.5057 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005719/0.3622, allocations: 1.981 MB / 0.5076 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.3635, allocations: 1.134 MB / 0.5087 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.3638, allocations: 208.4 kB / 0.5089 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006779/0.3645, allocations: 393 kB / 0.5093 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000318/0.3648, allocations: 267.1 kB / 0.5096 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.3649, allocations: 15.78 kB / 0.5096 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01264/0.3775, allocations: 7.13 MB / 0.5165 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.3777, allocations: 82.58 kB / 0.5166 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000295/0.378, allocations: 226.9 kB / 0.5168 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007307/0.3853, allocations: 4.378 MB / 0.5211 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3854, allocations: 0 / 0.5211 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3854, allocations: 0 / 0.5211 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.3854, allocations: 0 / 0.5211 GB, free: 12.24 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.002934/0.3883, allocations: 1.153 MB / 0.5222 GB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3884, allocations: 15.03 kB / 0.5222 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.2e-05/0.3884, allocations: 68.16 kB / 0.5223 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.39, allocations: 222.6 kB / 0.5225 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.3904, allocations: 363.4 kB / 0.5229 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.3905, allocations: 27.64 kB / 0.5229 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.3905, allocations: 26.41 kB / 0.5229 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3919, allocations: 0.6105 MB / 0.5235 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.3919, allocations: 0 / 0.5235 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/0.392, allocations: 12.33 kB / 0.5235 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.392, allocations: 12.55 kB / 0.5235 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3935, allocations: 0.5668 MB / 0.5241 GB, free: 10.68 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.002292/0.3958, allocations: 2.64 MB / 0.5267 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.3973, allocations: 0.4892 MB / 0.5272 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/0.3977, allocations: 199 kB / 0.5273 GB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04412/0.4418, allocations: 24.43 MB / 0.5512 GB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.4419, allocations: 41.86 kB / 0.5512 GB, free: 3.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.4419, allocations: 0 / 0.5512 GB, free: 3.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003035/0.4449, allocations: 0.8493 MB / 0.5521 GB, free: 2.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.445, allocations: 106.8 kB / 0.5522 GB, free: 2.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003921/0.4454, allocations: 312.2 kB / 0.5525 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.416e-05/0.4455, allocations: 25.7 kB / 0.5525 GB, free: 2.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.4456, allocations: 208.7 kB / 0.5527 GB, free: 1.941 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.4457, allocations: 84.86 kB / 0.5528 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.4458, allocations: 33.64 kB / 0.5528 GB, free: 1.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4459, allocations: 343.8 kB / 0.5531 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004096/0.4463, allocations: 151.7 kB / 0.5533 GB, free: 1.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000454/0.4468, allocations: 253.5 kB / 0.5535 GB, free: 1.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008062/0.4476, allocations: 393.8 kB / 0.5539 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4476, allocations: 0 / 0.5539 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001036/0.4487, allocations: 456.7 kB / 0.5543 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.4487, allocations: 10.34 kB / 0.5543 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4487, allocations: 4 kB / 0.5543 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.4487, allocations: 7.938 kB / 0.5544 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.4491, allocations: 88.88 kB / 0.5544 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.4491, allocations: 10.53 kB / 0.5544 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.4495, allocations: 56.22 kB / 0.5545 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.4496, allocations: 15.75 kB / 0.5545 GB, free: 332 kB / 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: 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.0001908/0.4497, allocations: 162.6 kB / 0.5547 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.459e-05/0.4498, allocations: 31.62 kB / 0.5547 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.4522, allocations: 1.939 MB / 0.5566 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/0.4523, allocations: 41.33 kB / 0.5566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4523, allocations: 0 / 0.5566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4523, allocations: 4 kB / 0.5566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.4533, allocations: 1.012 MB / 0.5576 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4534, allocations: 0 / 0.5576 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.4537, allocations: 81.88 kB / 0.5577 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.4537, allocations: 4 kB / 0.5577 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.4537, allocations: 14.98 kB / 0.5577 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.4537, allocations: 3.938 kB / 0.5577 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.4537, allocations: 0.9375 kB / 0.5577 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.4552, allocations: 1.098 MB / 0.5588 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.4554, allocations: 217.4 kB / 0.559 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/0.4555, allocations: 7 kB / 0.559 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.4558, allocations: 53.55 kB / 0.5591 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.019e-05/0.4559, allocations: 36.42 kB / 0.5591 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.4559, allocations: 10.19 kB / 0.5591 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003425/0.4563, allocations: 324.8 kB / 0.5594 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4563, allocations: 4 kB / 0.5594 GB, free: 12.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003839/0.4602, allocations: 0.9874 MB / 0.5604 GB, free: 11.69 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: 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.008844/0.469, allocations: 2.725 MB / 0.563 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.4706, allocations: 0.6158 MB / 0.5637 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4706, allocations: 0 / 0.5637 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008069/0.4714, allocations: 0.5371 MB / 0.5642 GB, free: 7.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.4729, allocations: 202.5 kB / 0.5644 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.483, allocations: 5.443 MB / 0.5697 GB, free: 2.176 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.4835, allocations: 0.9599 MB / 0.5706 GB, free: 1.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.4841, allocations: 281.5 kB / 0.5709 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.4844, allocations: 255.3 kB / 0.5711 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4844, allocations: 1.969 kB / 0.5711 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07023/0.5547, allocations: 45.62 MB / 0.6157 GB, free: 3.352 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002459/0.5549, allocations: 263.6 kB / 0.6159 GB, free: 3.047 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.898/4.453, allocations: 7.516 kB / 0.6159 GB, free: 3.043 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches