Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.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.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",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.001496/0.001496, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001739/0.001739, allocations: 192 kB / 18.56 MB, free: 4.434 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.355/1.355, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2066/0.2066, allocations: 44.19 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 59.39 kB / 408.5 MB, free: 27.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.113, allocations: 60.83 MB / 469.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.477/0.5901, allocations: 181.1 MB / 0.6353 GB, free: 11.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006621/0.5968, allocations: 4.599 MB / 0.6397 GB, free: 6.703 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009134/0.5977, allocations: 15.88 kB / 0.6398 GB, free: 6.688 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.5989, allocations: 345.8 kB / 0.6401 GB, free: 6.348 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005471/0.6044, allocations: 1.767 MB / 0.6418 GB, free: 4.574 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.6072, allocations: 0.9393 MB / 0.6427 GB, free: 3.645 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002528/0.6097, allocations: 1.707 MB / 0.6444 GB, free: 1.93 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007283/0.6104, allocations: 446.6 kB / 0.6448 GB, free: 1.496 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.6124, allocations: 0.8332 MB / 0.6456 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009259/0.6133, allocations: 0.4903 MB / 0.6461 GB, free: 172 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.6135, allocations: 52 kB / 0.6462 GB, free: 120 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.6166, allocations: 1.248 MB / 0.6474 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.6169, allocations: 171.5 kB / 0.6476 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004527/0.6173, allocations: 378.3 kB / 0.6479 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00264/0.62, allocations: 1.621 MB / 0.6495 GB, free: 12.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.62, allocations: 0 / 0.6495 GB, free: 12.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.62, allocations: 0 / 0.6495 GB, free: 12.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.62, allocations: 0 / 0.6495 GB, free: 12.7 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.002343/0.6224, allocations: 1.111 MB / 0.6506 GB, free: 11.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.6224, allocations: 11.97 kB / 0.6506 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.6226, allocations: 86.53 kB / 0.6507 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.6239, allocations: 147.2 kB / 0.6508 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000936/0.6249, allocations: 496.4 kB / 0.6513 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.6249, allocations: 33 kB / 0.6513 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.709e-05/0.6251, allocations: 44 kB / 0.6514 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.6266, allocations: 0.6477 MB / 0.652 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.6267, allocations: 4 kB / 0.652 GB, free: 9.992 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-05/0.6268, allocations: 27.98 kB / 0.652 GB, free: 9.965 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.6268, allocations: 12 kB / 0.652 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.6281, allocations: 0.4918 MB / 0.6525 GB, free: 9.457 MB / 494.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.004304/0.6324, allocations: 2.652 MB / 0.6551 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009584/0.6334, allocations: 322.6 kB / 0.6554 GB, free: 6.293 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.6338, allocations: 161 kB / 0.6556 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005615/0.6344, allocations: 441.4 kB / 0.656 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.6344, allocations: 42.5 kB / 0.656 GB, free: 5.559 MB / 494.1 MB Notification: Performance of pre-optimization done (n=35): time 2.916e-06/0.6344, allocations: 4 kB / 0.656 GB, free: 5.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=35): time 0.002206/0.6366, allocations: 0.7024 MB / 0.6567 GB, free: 4.824 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.6368, allocations: 158.2 kB / 0.6569 GB, free: 4.633 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008174/0.6376, allocations: 0.5223 MB / 0.6574 GB, free: 4.098 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-05/0.6377, allocations: 37.7 kB / 0.6574 GB, free: 4.055 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.6379, allocations: 303.5 kB / 0.6577 GB, free: 3.754 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.6381, allocations: 122.2 kB / 0.6578 GB, free: 3.633 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/0.6384, allocations: 122.1 kB / 0.6579 GB, free: 3.508 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.6385, allocations: 366.7 kB / 0.6583 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004/0.6389, allocations: 149.9 kB / 0.6584 GB, free: 2.992 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005539/0.6395, allocations: 323 kB / 0.6587 GB, free: 2.602 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.6405, allocations: 473.8 kB / 0.6592 GB, free: 2.074 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.6406, allocations: 0 / 0.6592 GB, free: 2.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001525/0.6421, allocations: 0.5674 MB / 0.6597 GB, free: 1.496 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.6421, allocations: 16.55 kB / 0.6598 GB, free: 1.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.6422, allocations: 8 kB / 0.6598 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002095/0.6443, allocations: 232.5 kB / 0.66 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.6448, allocations: 124.5 kB / 0.6601 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005963/0.6455, allocations: 0.5924 MB / 0.6607 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/0.646, allocations: 51.44 kB / 0.6607 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.6461, allocations: 52.05 kB / 0.6608 GB, free: 412 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (52): * Single equations (assignments): 51 * 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.0003715/0.6465, allocations: 197.6 kB / 0.661 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.6467, allocations: 59.34 kB / 0.661 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.6488, allocations: 1.111 MB / 0.6621 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.6488, allocations: 4 kB / 0.6621 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6488, allocations: 0 / 0.6621 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.6488, allocations: 3.984 kB / 0.6621 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.6502, allocations: 1.006 MB / 0.6631 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.6502, allocations: 7.938 kB / 0.6631 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.6504, allocations: 55.91 kB / 0.6632 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003156/0.6536, allocations: 440.3 kB / 0.6636 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.6536, allocations: 12 kB / 0.6636 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004104/0.6541, allocations: 0.5952 MB / 0.6642 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6541, allocations: 4 kB / 0.6642 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009684/0.655, allocations: 0.5006 MB / 0.6647 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.6552, allocations: 136.4 kB / 0.6648 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.6554, allocations: 15.84 kB / 0.6648 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005237/0.6559, allocations: 15.98 kB / 0.6648 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.204e-05/0.656, allocations: 35.89 kB / 0.6649 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.6561, allocations: 19.98 kB / 0.6649 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007758/0.6569, allocations: 438.8 kB / 0.6653 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.6569, allocations: 0 / 0.6653 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001303/0.6582, allocations: 291.8 kB / 0.6656 GB, free: 11.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (28): * Single equations (assignments): 27 * 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.002373/0.6606, allocations: 1.33 MB / 0.6669 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.6618, allocations: 392.9 kB / 0.6673 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6618, allocations: 0 / 0.6673 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004074/0.6622, allocations: 159.8 kB / 0.6674 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002629/0.6648, allocations: 409.1 kB / 0.6678 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009538/0.6744, allocations: 5.177 MB / 0.6729 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005733/0.675, allocations: 0.8714 MB / 0.6737 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001942/0.677, allocations: 0.5653 MB / 0.6743 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005929/0.6776, allocations: 247.3 kB / 0.6745 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of SimCode: time 1.193e-06/0.6776, allocations: 0 / 0.6745 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0546/0.7322, allocations: 22.81 MB / 0.6968 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.61, allocations: 12.38 kB / 0.6968 GB, free: 11.36 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/TestCases/PressureLoss/Orifice/Orifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches