Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001434/0.001434, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2185/0.2185, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 83.16 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1095, allocations: 62.45 MB / 480.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.2663/0.3758, allocations: 63.05 MB / 0.5305 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02473/0.4006, allocations: 22.46 MB / 0.5525 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.4022, allocations: 31.44 kB / 0.5525 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001972/0.4042, allocations: 0.7409 MB / 0.5532 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01559/0.4198, allocations: 5.741 MB / 0.5588 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01026/0.4301, allocations: 3.464 MB / 0.5622 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01859/0.4487, allocations: 8.972 MB / 0.571 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.45, allocations: 0.6654 MB / 0.5716 GB, free: 9.922 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002237/0.4523, allocations: 1 MB / 0.5726 GB, free: 8.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.4536, allocations: 0.7778 MB / 0.5734 GB, free: 8.137 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002024/0.4538, allocations: 88 kB / 0.5734 GB, free: 8.051 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01599/0.4698, allocations: 7.501 MB / 0.5808 GB, free: 0.543 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004499/0.4703, allocations: 270.9 kB / 0.581 GB, free: 284 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.4715, allocations: 0.6805 MB / 0.5817 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.4861, allocations: 5.706 MB / 0.5873 GB, free: 9.875 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4862, allocations: 8 kB / 0.5873 GB, free: 9.867 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4862, allocations: 0 / 0.5873 GB, free: 9.867 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.4862, allocations: 0 / 0.5873 GB, free: 9.867 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.0067/0.4929, allocations: 2.447 MB / 0.5897 GB, free: 7.367 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.493, allocations: 8.031 kB / 0.5897 GB, free: 7.359 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000192/0.4932, allocations: 160.3 kB / 0.5898 GB, free: 7.195 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003853/0.497, allocations: 0.5535 MB / 0.5904 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.4986, allocations: 0.9499 MB / 0.5913 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.072e-05/0.4987, allocations: 70.38 kB / 0.5913 GB, free: 5.578 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.4988, allocations: 95.94 kB / 0.5914 GB, free: 5.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00357/0.5024, allocations: 1.619 MB / 0.593 GB, free: 3.738 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.5024, allocations: 11.92 kB / 0.593 GB, free: 3.727 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5025, allocations: 44 kB / 0.5931 GB, free: 3.684 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.893e-05/0.5026, allocations: 24 kB / 0.5931 GB, free: 3.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003291/0.5059, allocations: 1.381 MB / 0.5944 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.5161, allocations: 8.255 MB / 0.6025 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/0.5194, allocations: 1.651 MB / 0.6041 GB, free: 7.602 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000578/0.52, allocations: 362.8 kB / 0.6045 GB, free: 7.242 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1458/0.6658, allocations: 70.36 MB / 0.6732 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.904e-05/0.6659, allocations: 39 kB / 0.6732 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=69): time 2.796e-06/0.6659, allocations: 4 kB / 0.6732 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69): time 0.005967/0.6718, allocations: 1.881 MB / 0.6751 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.672, allocations: 184.4 kB / 0.6752 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.6735, allocations: 0.9721 MB / 0.6762 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/0.6736, allocations: 37.7 kB / 0.6762 GB, free: 4.738 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005187/0.6741, allocations: 0.5727 MB / 0.6768 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.6744, allocations: 244.5 kB / 0.677 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.6747, allocations: 222.7 kB / 0.6772 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.6748, allocations: 345.9 kB / 0.6776 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/0.6753, allocations: 274.4 kB / 0.6778 GB, free: 3.078 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/0.6762, allocations: 0.7042 MB / 0.6785 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.6777, allocations: 1.039 MB / 0.6795 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.6777, allocations: 4 kB / 0.6795 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002204/0.6799, allocations: 1.156 MB / 0.6806 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.68, allocations: 12 kB / 0.6807 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.68, allocations: 12 kB / 0.6807 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003398/0.6834, allocations: 0.5298 MB / 0.6812 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.6845, allocations: 259.5 kB / 0.6814 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.6857, allocations: 1.382 MB / 0.6828 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008109/0.6865, allocations: 126.6 kB / 0.6829 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.6867, allocations: 68.03 kB / 0.683 GB, free: 13.34 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.0004957/0.6872, allocations: 287.7 kB / 0.6832 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.6875, allocations: 126.6 kB / 0.6834 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005223/0.6927, allocations: 4.423 MB / 0.6877 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-05/0.6928, allocations: 47.92 kB / 0.6877 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.6928, allocations: 0 / 0.6877 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6928, allocations: 3.984 kB / 0.6877 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005763/0.6986, allocations: 4.827 MB / 0.6925 GB, free: 3.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.6986, allocations: 0 / 0.6925 GB, free: 3.406 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/0.6993, allocations: 147.8 kB / 0.6926 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/0.7009, allocations: 0.6902 MB / 0.6933 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.701, allocations: 20 kB / 0.6933 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/0.7026, allocations: 1.759 MB / 0.695 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7026, allocations: 0 / 0.695 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.7051, allocations: 1.952 MB / 0.6969 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00038/0.7055, allocations: 258.5 kB / 0.6972 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.7057, allocations: 39.53 kB / 0.6972 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.7062, allocations: 16 kB / 0.6972 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.226e-05/0.7063, allocations: 56.58 kB / 0.6973 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.7063, allocations: 39.86 kB / 0.6973 GB, free: 14.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001155/0.7075, allocations: 0.8342 MB / 0.6981 GB, free: 13.47 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7075, allocations: 0 / 0.6981 GB, free: 13.47 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00362/0.7111, allocations: 1.265 MB / 0.6994 GB, free: 12.2 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.00757/0.7187, allocations: 3.662 MB / 0.7029 GB, free: 8.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003142/0.7219, allocations: 1.207 MB / 0.7041 GB, free: 7.273 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.7219, allocations: 1.562 kB / 0.7041 GB, free: 7.273 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.7235, allocations: 0.8601 MB / 0.7049 GB, free: 6.41 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003716/0.7272, allocations: 0.7209 MB / 0.7057 GB, free: 5.711 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1915/0.9187, allocations: 11.6 MB / 0.717 GB, free: 205.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007204/0.9194, allocations: 1.309 MB / 0.7183 GB, free: 204.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001384/0.9208, allocations: 0.6139 MB / 0.7189 GB, free: 204.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005996/0.9214, allocations: 0.6495 MB / 0.7195 GB, free: 204.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.21e-07/0.9215, allocations: 1.344 kB / 0.7195 GB, free: 204.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1105/1.032, allocations: 71.48 MB / 0.7893 GB, free: 146.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.75, allocations: 7.938 kB / 0.7893 GB, free: 146.7 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)