Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.203/0.203, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 73.61 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.1013, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.2369/0.3382, allocations: 63.05 MB / 0.5304 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02243/0.3607, allocations: 22.46 MB / 0.5524 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.3618, allocations: 33.41 kB / 0.5524 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.3635, allocations: 0.7363 MB / 0.5531 GB, free: 8.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01439/0.3779, allocations: 5.744 MB / 0.5587 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008678/0.3866, allocations: 3.47 MB / 0.5621 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01748/0.4041, allocations: 8.962 MB / 0.5709 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.4055, allocations: 0.6618 MB / 0.5715 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.4075, allocations: 1 MB / 0.5725 GB, free: 9.039 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008749/0.4083, allocations: 0.7856 MB / 0.5733 GB, free: 8.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.4085, allocations: 88 kB / 0.5734 GB, free: 8.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01428/0.4228, allocations: 7.493 MB / 0.5807 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003254/0.4231, allocations: 274.9 kB / 0.5809 GB, free: 404 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008867/0.424, allocations: 0.6881 MB / 0.5816 GB, free: 15.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.4353, allocations: 5.706 MB / 0.5872 GB, free: 9.984 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4353, allocations: 3.938 kB / 0.5872 GB, free: 9.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4353, allocations: 4 kB / 0.5872 GB, free: 9.977 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.4353, allocations: 0 / 0.5872 GB, free: 9.977 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.005541/0.4409, allocations: 2.447 MB / 0.5896 GB, free: 7.477 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4409, allocations: 8.031 kB / 0.5896 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.4411, allocations: 148.3 kB / 0.5897 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003777/0.4449, allocations: 0.5652 MB / 0.5903 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.4462, allocations: 0.946 MB / 0.5912 GB, free: 5.762 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.783e-05/0.4463, allocations: 74.38 kB / 0.5913 GB, free: 5.688 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.4464, allocations: 103.9 kB / 0.5914 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003262/0.4497, allocations: 1.612 MB / 0.5929 GB, free: 3.848 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.4497, allocations: 7.938 kB / 0.5929 GB, free: 3.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-05/0.4498, allocations: 48 kB / 0.593 GB, free: 3.793 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.4499, allocations: 24 kB / 0.593 GB, free: 3.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003116/0.453, allocations: 1.373 MB / 0.5944 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008414/0.4614, allocations: 8.255 MB / 0.6024 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002907/0.4643, allocations: 1.656 MB / 0.604 GB, free: 7.715 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005063/0.4649, allocations: 368.5 kB / 0.6044 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1348/0.5997, allocations: 70.38 MB / 0.6731 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.5998, allocations: 43 kB / 0.6732 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=69): time 2.785e-06/0.5998, allocations: 0 / 0.6732 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69): time 0.005599/0.6054, allocations: 1.869 MB / 0.675 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/0.6055, allocations: 192.4 kB / 0.6752 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.6068, allocations: 0.9799 MB / 0.6761 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.6069, allocations: 37.7 kB / 0.6762 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004178/0.6073, allocations: 0.561 MB / 0.6767 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.6076, allocations: 252.5 kB / 0.6769 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.6079, allocations: 222.7 kB / 0.6772 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.608, allocations: 341.9 kB / 0.6775 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/0.6085, allocations: 266.5 kB / 0.6777 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007776/0.6093, allocations: 0.7159 MB / 0.6784 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.6105, allocations: 1.031 MB / 0.6794 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.6106, allocations: 8 kB / 0.6795 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002011/0.6126, allocations: 1.155 MB / 0.6806 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6126, allocations: 12 kB / 0.6806 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.6126, allocations: 12 kB / 0.6806 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003316/0.616, allocations: 0.5341 MB / 0.6811 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009215/0.6169, allocations: 251.6 kB / 0.6814 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.618, allocations: 1.379 MB / 0.6827 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007322/0.6187, allocations: 126.5 kB / 0.6828 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.94e-05/0.6188, allocations: 72.03 kB / 0.6829 GB, free: 13.44 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000439/0.6193, allocations: 292.1 kB / 0.6832 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.6196, allocations: 126.6 kB / 0.6833 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/0.624, allocations: 4.411 MB / 0.6876 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.411e-05/0.6241, allocations: 39.94 kB / 0.6876 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.6241, allocations: 4 kB / 0.6877 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.6241, allocations: 7.922 kB / 0.6877 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/0.6289, allocations: 4.831 MB / 0.6924 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.629, allocations: 0 / 0.6924 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007129/0.6297, allocations: 151.8 kB / 0.6925 GB, free: 3.363 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.6312, allocations: 0.6824 MB / 0.6932 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.6313, allocations: 23.98 kB / 0.6932 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.6325, allocations: 1.759 MB / 0.6949 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6325, allocations: 0 / 0.6949 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.6347, allocations: 1.952 MB / 0.6968 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.635, allocations: 254.5 kB / 0.6971 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.6352, allocations: 43.53 kB / 0.6971 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.6356, allocations: 16 kB / 0.6971 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/0.6357, allocations: 52.48 kB / 0.6972 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.848e-05/0.6358, allocations: 31.98 kB / 0.6972 GB, free: 14.42 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001039/0.6368, allocations: 0.8342 MB / 0.698 GB, free: 13.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.705e-06/0.6368, allocations: 0 / 0.698 GB, free: 13.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003075/0.6399, allocations: 1.272 MB / 0.6993 GB, free: 12.31 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006766/0.6467, allocations: 3.665 MB / 0.7029 GB, free: 8.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002831/0.6495, allocations: 1.208 MB / 0.704 GB, free: 7.383 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.6495, allocations: 4.375 kB / 0.704 GB, free: 7.379 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.6509, allocations: 0.867 MB / 0.7049 GB, free: 6.512 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/0.6543, allocations: 0.718 MB / 0.7056 GB, free: 5.816 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1857/0.8401, allocations: 11.6 MB / 0.7169 GB, free: 205.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006899/0.8408, allocations: 1.312 MB / 0.7182 GB, free: 205 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00123/0.842, allocations: 0.6088 MB / 0.7188 GB, free: 205 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.8426, allocations: 0.65 MB / 0.7194 GB, free: 204.5 MB / 0.545 GB Notification: Performance of SimCode: time 7.31e-07/0.8426, allocations: 1.219 kB / 0.7194 GB, free: 204.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09478/0.9374, allocations: 71.46 MB / 0.7892 GB, free: 146.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/15.15, allocations: 3.938 kB / 0.7892 GB, free: 146.9 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_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_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSuddenExpansion/TestSuddenExpansion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches