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.001132/0.001132, allocations: 117.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2381/0.2381, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3582, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.06426/0.4225, allocations: 63.06 MB / 0.5921 GB, free: 2.516 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02772/0.4503, allocations: 22.46 MB / 0.614 GB, free: 11.98 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.4521, allocations: 31.75 kB / 0.6141 GB, free: 11.95 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002135/0.4543, allocations: 0.7374 MB / 0.6148 GB, free: 11.2 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01823/0.4726, allocations: 5.769 MB / 0.6204 GB, free: 5.43 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01024/0.4828, allocations: 3.463 MB / 0.6238 GB, free: 1.969 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01877/0.5016, allocations: 8.984 MB / 0.6326 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.503, allocations: 0.6572 MB / 0.6332 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002073/0.5051, allocations: 1.043 MB / 0.6342 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.5061, allocations: 0.7701 MB / 0.635 GB, free: 6.383 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.5063, allocations: 88 kB / 0.6351 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01488/0.5212, allocations: 7.66 MB / 0.6425 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004788/0.5217, allocations: 270.9 kB / 0.6428 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.5229, allocations: 0.692 MB / 0.6435 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01614/0.539, allocations: 5.727 MB / 0.6491 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.5391, allocations: 0 / 0.6491 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.255e-06/0.5391, allocations: 0 / 0.6491 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.617e-05/0.5392, allocations: 7.984 kB / 0.6491 GB, free: 7.918 MB / 0.4981 GB 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.009326/0.5485, allocations: 2.516 MB / 0.6515 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/0.5486, allocations: 8.031 kB / 0.6515 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003983/0.549, allocations: 152.3 kB / 0.6517 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004383/0.5534, allocations: 0.5543 MB / 0.6522 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002402/0.5558, allocations: 1.009 MB / 0.6532 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.798e-05/0.5559, allocations: 78.12 kB / 0.6533 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.5562, allocations: 96 kB / 0.6534 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004236/0.5605, allocations: 1.612 MB / 0.655 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.241e-05/0.5605, allocations: 7.875 kB / 0.655 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001632/0.5607, allocations: 48 kB / 0.655 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.5607, allocations: 24 kB / 0.655 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/0.5642, allocations: 1.373 MB / 0.6564 GB, free: 216 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.5755, allocations: 8.249 MB / 0.6644 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003199/0.5787, allocations: 1.658 MB / 0.666 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.5793, allocations: 356 kB / 0.6664 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4312/1.011, allocations: 70.67 MB / 0.7354 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/1.011, allocations: 46.36 kB / 0.7354 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=69): time 2.796e-06/1.011, allocations: 0 / 0.7354 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69): time 0.005824/1.016, allocations: 1.879 MB / 0.7373 GB, free: 185.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/1.017, allocations: 197 kB / 0.7375 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/1.018, allocations: 0.9664 MB / 0.7384 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/1.018, allocations: 38.45 kB / 0.7384 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003672/1.018, allocations: 0.5855 MB / 0.739 GB, free: 183.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/1.018, allocations: 257.7 kB / 0.7393 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/1.019, allocations: 227.5 kB / 0.7395 GB, free: 183.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.325e-05/1.019, allocations: 342.8 kB / 0.7398 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/1.019, allocations: 273.7 kB / 0.7401 GB, free: 183.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006884/1.02, allocations: 0.7095 MB / 0.7408 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/1.021, allocations: 1.032 MB / 0.7418 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/1.021, allocations: 3.594 kB / 0.7418 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001955/1.023, allocations: 1.164 MB / 0.7429 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/1.023, allocations: 11.44 kB / 0.7429 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/1.023, allocations: 15.25 kB / 0.7429 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003212/1.026, allocations: 0.5304 MB / 0.7435 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008969/1.027, allocations: 257.2 kB / 0.7437 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008447/1.028, allocations: 1.375 MB / 0.745 GB, free: 179.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008126/1.029, allocations: 130.1 kB / 0.7452 GB, free: 179.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/1.029, allocations: 69.59 kB / 0.7452 GB, free: 179.3 MB / 0.5762 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.0005773/1.03, allocations: 288.1 kB / 0.7455 GB, free: 179 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002964/1.03, allocations: 133.8 kB / 0.7456 GB, free: 179 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/1.034, allocations: 4.393 MB / 0.7499 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.288e-05/1.034, allocations: 43.28 kB / 0.75 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/1.034, allocations: 0 / 0.75 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.034, allocations: 3.984 kB / 0.75 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004652/1.039, allocations: 4.819 MB / 0.7547 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/1.039, allocations: 7.828 kB / 0.7547 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007047/1.039, allocations: 151.5 kB / 0.7548 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/1.041, allocations: 0.6861 MB / 0.7555 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/1.041, allocations: 24.81 kB / 0.7555 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009768/1.042, allocations: 1.755 MB / 0.7572 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.042, allocations: 3.938 kB / 0.7572 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/1.044, allocations: 1.962 MB / 0.7592 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/1.044, allocations: 270.6 kB / 0.7594 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/1.044, allocations: 41.12 kB / 0.7595 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004508/1.045, allocations: 20 kB / 0.7595 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.565e-05/1.045, allocations: 48.5 kB / 0.7595 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.791e-05/1.045, allocations: 31.98 kB / 0.7595 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009165/1.046, allocations: 0.8342 MB / 0.7604 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.046, allocations: 0 / 0.7604 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00394/1.05, allocations: 1.28 MB / 0.7616 GB, free: 166.1 MB / 0.5762 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.00652/1.056, allocations: 3.686 MB / 0.7652 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002313/1.058, allocations: 1.165 MB / 0.7663 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/1.058, allocations: 4 kB / 0.7664 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001217/1.06, allocations: 0.8639 MB / 0.7672 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003484/1.063, allocations: 0.7202 MB / 0.7679 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/1.076, allocations: 10.87 MB / 0.7785 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/1.077, allocations: 1.304 MB / 0.7798 GB, free: 147 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001113/1.078, allocations: 0.6281 MB / 0.7804 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005807/1.078, allocations: 0.6516 MB / 0.781 GB, free: 145.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.42e-07/1.078, allocations: 4 kB / 0.781 GB, free: 145.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.18, allocations: 71.78 MB / 0.8511 GB, free: 74.26 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/18.29, allocations: 15.53 kB / 0.8511 GB, free: 74.25 MB / 0.5762 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