Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.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.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",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.001291/0.001291, allocations: 112.4 kB / 16.4 MB, free: 6.367 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.001244/0.001244, allocations: 196.8 kB / 17.34 MB, free: 5.844 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.324/1.324, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.1912/0.1912, allocations: 43.51 MB / 314.1 MB, free: 456 kB / 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.001392/0.001392, allocations: 73.45 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1198, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice): time 0.4529/0.5728, allocations: 190 MB / 0.6729 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.008948/0.5818, allocations: 5.714 MB / 0.6785 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009782/0.5828, allocations: 15.88 kB / 0.6785 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.5842, allocations: 321.8 kB / 0.6788 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004504/0.5888, allocations: 1.657 MB / 0.6805 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.5907, allocations: 0.7269 MB / 0.6812 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002046/0.5927, allocations: 1.559 MB / 0.6827 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007077/0.5935, allocations: 427.5 kB / 0.6831 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.5946, allocations: 0.5916 MB / 0.6837 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007922/0.5954, allocations: 466.1 kB / 0.6841 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.5955, allocations: 52 kB / 0.6842 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002723/0.5983, allocations: 1.404 MB / 0.6856 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002303/0.5985, allocations: 151.5 kB / 0.6857 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005327/0.5991, allocations: 354.4 kB / 0.686 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.602, allocations: 1.624 MB / 0.6876 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.6021, allocations: 0 / 0.6876 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6021, allocations: 0 / 0.6876 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.097e-05/0.6021, allocations: 0 / 0.6876 GB, free: 13.65 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.002264/0.6044, allocations: 1.112 MB / 0.6887 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.6044, allocations: 15.89 kB / 0.6887 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.6045, allocations: 90.52 kB / 0.6888 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.6056, allocations: 143.5 kB / 0.6889 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009664/0.6066, allocations: 0.5007 MB / 0.6894 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.6066, allocations: 33 kB / 0.6895 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.508e-05/0.6067, allocations: 36 kB / 0.6895 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.6078, allocations: 0.5983 MB / 0.6901 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.6079, allocations: 0 / 0.6901 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.625e-05/0.6079, allocations: 20 kB / 0.6901 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.608, allocations: 15.94 kB / 0.6901 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009666/0.6089, allocations: 479.6 kB / 0.6906 GB, free: 10.49 MB / 0.5294 GB 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.003135/0.6121, allocations: 2.699 MB / 0.6932 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.6128, allocations: 339.4 kB / 0.6935 GB, free: 7.23 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/0.6131, allocations: 181.3 kB / 0.6937 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001219/0.6143, allocations: 1.297 MB / 0.695 GB, free: 5.531 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.6144, allocations: 34.84 kB / 0.695 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=33): time 1.753e-06/0.6144, allocations: 4 kB / 0.695 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of matching and sorting (n=33): time 0.001767/0.6162, allocations: 0.7301 MB / 0.6957 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/0.6163, allocations: 136.5 kB / 0.6959 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006151/0.6169, allocations: 494.1 kB / 0.6963 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.6169, allocations: 33.7 kB / 0.6964 GB, free: 4.031 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.6172, allocations: 288.2 kB / 0.6966 GB, free: 3.746 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.6173, allocations: 127 kB / 0.6968 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.6174, allocations: 98.11 kB / 0.6968 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.6176, allocations: 362.7 kB / 0.6972 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.6179, allocations: 148.8 kB / 0.6973 GB, free: 3.012 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.6183, allocations: 279.4 kB / 0.6976 GB, free: 2.688 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/0.619, allocations: 449.5 kB / 0.698 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.6191, allocations: 0 / 0.698 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001024/0.6201, allocations: 0.5484 MB / 0.6986 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.6201, allocations: 6.656 kB / 0.6986 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.6201, allocations: 4 kB / 0.6986 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.6217, allocations: 241 kB / 0.6988 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.622, allocations: 99.89 kB / 0.6989 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004626/0.6225, allocations: 0.603 MB / 0.6995 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.6229, allocations: 47.62 kB / 0.6995 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.251e-05/0.6229, allocations: 47.98 kB / 0.6996 GB, free: 0.5781 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002666/0.6232, allocations: 193.6 kB / 0.6998 GB, free: 388 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.6234, allocations: 63.72 kB / 0.6998 GB, free: 324 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.6249, allocations: 0.7139 MB / 0.7005 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.6249, allocations: 4 kB / 0.7005 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6249, allocations: 4 kB / 0.7005 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.6249, allocations: 7.922 kB / 0.7005 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.6266, allocations: 1.03 MB / 0.7015 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6266, allocations: 4.156 kB / 0.7015 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.6268, allocations: 55.91 kB / 0.7016 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003039/0.6299, allocations: 444.1 kB / 0.702 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.6299, allocations: 15.98 kB / 0.702 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004668/0.6304, allocations: 0.5992 MB / 0.7026 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6304, allocations: 4.031 kB / 0.7026 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.6312, allocations: 0.5238 MB / 0.7031 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.6314, allocations: 136.7 kB / 0.7033 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.6315, allocations: 15.94 kB / 0.7033 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.6319, allocations: 15.98 kB / 0.7033 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.6319, allocations: 31.84 kB / 0.7033 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.632, allocations: 19.98 kB / 0.7033 GB, free: 12.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004968/0.6325, allocations: 418.8 kB / 0.7037 GB, free: 12.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6325, allocations: 3.938 kB / 0.7038 GB, free: 12.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009114/0.6334, allocations: 331.2 kB / 0.7041 GB, free: 11.79 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002168/0.6356, allocations: 1.406 MB / 0.7054 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0008567/0.6365, allocations: 376 kB / 0.7058 GB, free: 9.969 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.6365, allocations: 0 / 0.7058 GB, free: 9.969 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.6369, allocations: 171.8 kB / 0.706 GB, free: 9.801 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.6385, allocations: 369.7 kB / 0.7063 GB, free: 9.445 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008021/0.6465, allocations: 4.947 MB / 0.7111 GB, free: 4.293 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004966/0.647, allocations: 0.8596 MB / 0.712 GB, free: 3.406 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007195/0.6478, allocations: 197.1 kB / 0.7122 GB, free: 3.211 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003469/0.6481, allocations: 219.4 kB / 0.7124 GB, free: 2.996 MB / 0.545 GB Notification: Performance of SimCode: time 2.394e-06/0.6482, allocations: 0 / 0.7124 GB, free: 2.996 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08928/0.7374, allocations: 22.59 MB / 0.7344 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.81, allocations: 19.84 kB / 0.7345 GB, free: 12.37 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/NewFittings/Orifices/ThickEdgedOrifice/ThickEdgedOrifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches