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.001087/0.001087, allocations: 95.56 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 45.92 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.000328, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.134, allocations: 63.47 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.3169/0.451, allocations: 53.13 MB / 0.5221 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.4735, allocations: 19.3 MB / 0.541 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.4755, allocations: 36.31 kB / 0.541 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002149/0.4777, allocations: 0.5719 MB / 0.5416 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0159/0.4936, allocations: 4.895 MB / 0.5463 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0082/0.5018, allocations: 2.74 MB / 0.549 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01985/0.5217, allocations: 12.64 MB / 0.5614 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001314/0.523, allocations: 0.58 MB / 0.5619 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.5254, allocations: 0.8876 MB / 0.5628 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.5264, allocations: 0.6224 MB / 0.5634 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.5265, allocations: 44 kB / 0.5634 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01721/0.5437, allocations: 7.433 MB / 0.5707 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000407/0.5442, allocations: 219.1 kB / 0.5709 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006775/0.5449, allocations: 289 kB / 0.5712 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.555, allocations: 3.864 MB / 0.575 GB, free: 9.898 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.5551, allocations: 0 / 0.575 GB, free: 9.898 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.5551, allocations: 0 / 0.575 GB, free: 9.898 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.5551, allocations: 0 / 0.575 GB, free: 9.898 MB / 414.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.006945/0.5621, allocations: 2.195 MB / 0.5771 GB, free: 7.652 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5621, allocations: 8.031 kB / 0.5771 GB, free: 7.645 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002655/0.5624, allocations: 148.2 kB / 0.5773 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003855/0.5663, allocations: 0.5603 MB / 0.5778 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.5681, allocations: 0.922 MB / 0.5787 GB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.5681, allocations: 74 kB / 0.5788 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.5683, allocations: 92 kB / 0.5789 GB, free: 5.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003452/0.5717, allocations: 1.604 MB / 0.5804 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/0.5718, allocations: 3.938 kB / 0.5804 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.5719, allocations: 48 kB / 0.5805 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/0.5719, allocations: 24 kB / 0.5805 GB, free: 4.004 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.5749, allocations: 1.373 MB / 0.5818 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009255/0.5842, allocations: 8.255 MB / 0.5899 GB, free: 9.762 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0029/0.5871, allocations: 1.66 MB / 0.5915 GB, free: 7.938 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1316/0.7188, allocations: 70.95 MB / 0.6608 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/0.7189, allocations: 46.94 kB / 0.6609 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=69): time 2.956e-06/0.7189, allocations: 0 / 0.6609 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69): time 0.005598/0.7245, allocations: 1.868 MB / 0.6627 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.7247, allocations: 196.3 kB / 0.6629 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.7259, allocations: 0.9451 MB / 0.6638 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/0.726, allocations: 37.7 kB / 0.6638 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.7264, allocations: 0.5726 MB / 0.6644 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.7266, allocations: 244.5 kB / 0.6646 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.7267, allocations: 20 kB / 0.6646 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.7268, allocations: 345.9 kB / 0.665 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.7272, allocations: 266.5 kB / 0.6652 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/0.728, allocations: 0.6964 MB / 0.6659 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000577/0.7286, allocations: 380.5 kB / 0.6663 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.7286, allocations: 7.938 kB / 0.6663 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001861/0.7304, allocations: 1.158 MB / 0.6674 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.7305, allocations: 11.98 kB / 0.6674 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.7305, allocations: 16 kB / 0.6674 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003121/0.7336, allocations: 0.5199 MB / 0.6679 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.7346, allocations: 267.5 kB / 0.6682 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.7357, allocations: 1.378 MB / 0.6695 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008531/0.7366, allocations: 150.8 kB / 0.6697 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.363e-05/0.7367, allocations: 71.98 kB / 0.6698 GB, free: 14.52 MB / 0.5137 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005092/0.7372, allocations: 284 kB / 0.67 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.7374, allocations: 126.5 kB / 0.6701 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004752/0.7422, allocations: 4.42 MB / 0.6745 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.072e-05/0.7422, allocations: 39.94 kB / 0.6745 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.7422, allocations: 3.938 kB / 0.6745 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.7422, allocations: 7.984 kB / 0.6745 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005281/0.7475, allocations: 4.827 MB / 0.6792 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.7476, allocations: 4 kB / 0.6792 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007491/0.7483, allocations: 143.8 kB / 0.6794 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004015/0.7524, allocations: 1.604 MB / 0.6809 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.7525, allocations: 23.98 kB / 0.681 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/0.7541, allocations: 1.747 MB / 0.6827 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7541, allocations: 4.094 kB / 0.6827 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.7567, allocations: 1.941 MB / 0.6846 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000545/0.7572, allocations: 353.8 kB / 0.6849 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.7574, allocations: 16 kB / 0.6849 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005248/0.7579, allocations: 63.88 kB / 0.685 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.758, allocations: 60.2 kB / 0.685 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.758, allocations: 31.98 kB / 0.6851 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001195/0.7592, allocations: 0.8147 MB / 0.6859 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7593, allocations: 0 / 0.6859 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003956/0.7632, allocations: 1.273 MB / 0.6871 GB, free: 12.38 MB / 0.5294 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.007245/0.7705, allocations: 3.715 MB / 0.6907 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002432/0.7729, allocations: 1.167 MB / 0.6919 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.773, allocations: 0 / 0.6919 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.7744, allocations: 0.853 MB / 0.6927 GB, free: 6.582 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/0.7779, allocations: 0.6843 MB / 0.6934 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.7944, allocations: 17.69 MB / 0.7106 GB, free: 3.652 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.7955, allocations: 1.351 MB / 0.712 GB, free: 2.273 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001406/0.7969, allocations: 0.6134 MB / 0.7126 GB, free: 1.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007115/0.7976, allocations: 0.6399 MB / 0.7132 GB, free: 1.02 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/0.7976, allocations: 4 kB / 0.7132 GB, free: 1.016 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3645/1.162, allocations: 70.22 MB / 0.7818 GB, free: 156.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/1.162, allocations: 270.1 kB / 0.782 GB, free: 155.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.097/6.259, allocations: 2.5 kB / 0.782 GB, free: 155.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat