Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_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.001093/0.001093, allocations: 103.2 kB / 16.27 MB, free: 6.41 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.001135/0.001135, allocations: 191.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2033/0.2033, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 67.72 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1065, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03174/0.1383, allocations: 28.12 MB / 468.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01752/0.1559, allocations: 13.3 MB / 482 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004369/0.1564, allocations: 7.938 kB / 482 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008308/0.1572, allocations: 254.3 kB / 482.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.1673, allocations: 3.653 MB / 485.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006199/0.1735, allocations: 2.364 MB / 488.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.1746, allocations: 0.8847 MB / 489.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.175, allocations: 248.8 kB / 489.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006808/0.1757, allocations: 438.3 kB / 489.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.176, allocations: 266.8 kB / 490.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.1761, allocations: 32 kB / 490.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01283/0.1889, allocations: 7.059 MB / 497.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.1891, allocations: 95.66 kB / 497.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002978/0.1894, allocations: 219 kB / 497.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009536/0.199, allocations: 4.413 MB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.199, allocations: 4 kB / 0.4902 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.199, allocations: 4 kB / 0.4902 GB, free: 9.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.199, allocations: 0 / 0.4902 GB, free: 9.293 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.00311/0.2022, allocations: 1.216 MB / 0.4914 GB, free: 8.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.2022, allocations: 15.88 kB / 0.4914 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.485e-05/0.2023, allocations: 66.73 kB / 0.4914 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.2041, allocations: 216.2 kB / 0.4917 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.2046, allocations: 363.3 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.2046, allocations: 29.03 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.2047, allocations: 32.06 kB / 0.4921 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.2062, allocations: 0.5745 MB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2063, allocations: 4 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.2063, allocations: 16 kB / 0.4926 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2063, allocations: 15.92 kB / 0.4927 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.2081, allocations: 0.5211 MB / 0.4932 GB, free: 6.098 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.00327/0.2114, allocations: 2.629 MB / 0.4957 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.2131, allocations: 458.1 kB / 0.4962 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000454/0.2136, allocations: 197.6 kB / 0.4964 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05339/0.267, allocations: 24.22 MB / 0.52 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.2671, allocations: 34.56 kB / 0.52 GB, free: 7.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.294e-06/0.2671, allocations: 0 / 0.52 GB, free: 7.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003123/0.2702, allocations: 0.7895 MB / 0.5208 GB, free: 6.633 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.132e-05/0.2703, allocations: 110.8 kB / 0.5209 GB, free: 6.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000406/0.2707, allocations: 316.5 kB / 0.5212 GB, free: 6.188 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.2708, allocations: 29.7 kB / 0.5212 GB, free: 6.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.2709, allocations: 200.2 kB / 0.5214 GB, free: 5.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.976e-05/0.271, allocations: 86.75 kB / 0.5215 GB, free: 5.863 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.2712, allocations: 69.69 kB / 0.5216 GB, free: 5.789 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.2713, allocations: 338.8 kB / 0.5219 GB, free: 5.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003962/0.2717, allocations: 135.9 kB / 0.522 GB, free: 5.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/0.2723, allocations: 239 kB / 0.5223 GB, free: 5.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008371/0.2731, allocations: 353.1 kB / 0.5226 GB, free: 4.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2731, allocations: 0 / 0.5226 GB, free: 4.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001206/0.2743, allocations: 421.8 kB / 0.523 GB, free: 4.246 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.2744, allocations: 9.25 kB / 0.523 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2744, allocations: 0 / 0.523 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.2744, allocations: 7.938 kB / 0.523 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.2748, allocations: 83.88 kB / 0.5231 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.2748, allocations: 7.938 kB / 0.5231 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.2751, allocations: 51.91 kB / 0.5232 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.2752, allocations: 12 kB / 0.5232 GB, free: 4.078 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.0002201/0.2754, allocations: 165.9 kB / 0.5233 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2755, allocations: 35.53 kB / 0.5234 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.2783, allocations: 1.908 MB / 0.5252 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.017e-05/0.2783, allocations: 27.95 kB / 0.5253 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2783, allocations: 0 / 0.5253 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.2783, allocations: 3.984 kB / 0.5253 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.2795, allocations: 1.015 MB / 0.5263 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.2795, allocations: 4 kB / 0.5263 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.2799, allocations: 71.94 kB / 0.5263 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.2799, allocations: 0 / 0.5263 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.28, allocations: 15.88 kB / 0.5263 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.28, allocations: 0 / 0.5263 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.28, allocations: 0 / 0.5263 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1888/0.4688, allocations: 1.086 MB / 0.5274 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.469, allocations: 157.6 kB / 0.5276 GB, free: 93.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.963e-05/0.4691, allocations: 29.25 kB / 0.5276 GB, free: 93.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002882/0.4694, allocations: 24.84 kB / 0.5276 GB, free: 93.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.4695, allocations: 31.2 kB / 0.5276 GB, free: 93.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.4696, allocations: 13.5 kB / 0.5276 GB, free: 93.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000352/0.4699, allocations: 327.1 kB / 0.528 GB, free: 93.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4699, allocations: 0.8125 kB / 0.528 GB, free: 93.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002594/0.4725, allocations: 0.9939 MB / 0.5289 GB, free: 93.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: 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.005999/0.4785, allocations: 2.687 MB / 0.5316 GB, free: 92.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.4801, allocations: 0.6093 MB / 0.5321 GB, free: 92.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4801, allocations: 0 / 0.5321 GB, free: 92.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006281/0.4807, allocations: 0.5144 MB / 0.5327 GB, free: 92.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.4819, allocations: 218.9 kB / 0.5329 GB, free: 92.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007461/0.4894, allocations: 5.005 MB / 0.5377 GB, free: 90.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.4899, allocations: 0.966 MB / 0.5387 GB, free: 90.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.4905, allocations: 285.5 kB / 0.539 GB, free: 90.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.4907, allocations: 256.2 kB / 0.5392 GB, free: 89.91 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4908, allocations: 0 / 0.5392 GB, free: 89.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2286/0.7194, allocations: 46.49 MB / 0.5846 GB, free: 49.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.77, allocations: 7.75 kB / 0.5846 GB, free: 49.77 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches