Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",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.001155/0.001155, allocations: 95.64 kB / 16.98 MB, free: 5.938 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.001396/0.001396, allocations: 186.9 kB / 17.88 MB, free: 5.594 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.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 380 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2039/0.2039, allocations: 44.22 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003449, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1332, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.3224/0.4556, allocations: 53.07 MB / 0.5123 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02627/0.482, allocations: 19.29 MB / 0.5311 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.4842, allocations: 35.72 kB / 0.5312 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.4867, allocations: 0.5719 MB / 0.5317 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02032/0.5071, allocations: 4.893 MB / 0.5365 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01115/0.5183, allocations: 2.738 MB / 0.5392 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0195/0.5378, allocations: 12.66 MB / 0.5516 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001174/0.539, allocations: 0.56 MB / 0.5521 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002068/0.5411, allocations: 0.8876 MB / 0.553 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007529/0.5419, allocations: 0.6146 MB / 0.5536 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.023e-05/0.542, allocations: 48 kB / 0.5536 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01681/0.5588, allocations: 7.429 MB / 0.5609 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.5593, allocations: 223.1 kB / 0.5611 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006934/0.56, allocations: 289.1 kB / 0.5614 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009072/0.569, allocations: 3.862 MB / 0.5651 GB, free: 6.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.5691, allocations: 0 / 0.5651 GB, free: 6.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5691, allocations: 0 / 0.5651 GB, free: 6.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.558e-05/0.5691, allocations: 0 / 0.5651 GB, free: 6.676 MB / 398.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.007197/0.5763, allocations: 2.179 MB / 0.5673 GB, free: 4.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.5764, allocations: 12.03 kB / 0.5673 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002033/0.5766, allocations: 152.2 kB / 0.5674 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003735/0.5803, allocations: 0.5565 MB / 0.568 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.5822, allocations: 0.9265 MB / 0.5689 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-05/0.5822, allocations: 74 kB / 0.5689 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.5824, allocations: 88 kB / 0.569 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003272/0.5856, allocations: 1.601 MB / 0.5706 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.5857, allocations: 4 kB / 0.5706 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-05/0.5858, allocations: 47.98 kB / 0.5706 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.5858, allocations: 28 kB / 0.5707 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.5888, allocations: 1.369 MB / 0.572 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00933/0.5981, allocations: 8.26 MB / 0.5801 GB, free: 6.566 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002893/0.601, allocations: 1.65 MB / 0.5817 GB, free: 4.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.13/0.731, allocations: 63.98 MB / 0.6442 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.617e-05/0.7311, allocations: 50.92 kB / 0.6442 GB, free: 13.19 MB / 494.1 MB Notification: Performance of pre-optimization done (n=69): time 3.046e-06/0.7311, allocations: 0 / 0.6442 GB, free: 13.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=69): time 0.005681/0.7368, allocations: 1.868 MB / 0.646 GB, free: 11.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.7369, allocations: 192.4 kB / 0.6462 GB, free: 11.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.7381, allocations: 0.9527 MB / 0.6471 GB, free: 10.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.7382, allocations: 37.7 kB / 0.6472 GB, free: 10.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000479/0.7387, allocations: 0.5687 MB / 0.6477 GB, free: 9.473 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.739, allocations: 248.5 kB / 0.648 GB, free: 9.227 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.739, allocations: 20 kB / 0.648 GB, free: 9.207 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.7392, allocations: 349.9 kB / 0.6483 GB, free: 8.859 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/0.7396, allocations: 266.5 kB / 0.6486 GB, free: 8.602 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/0.7404, allocations: 0.7003 MB / 0.6493 GB, free: 7.695 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.741, allocations: 372.6 kB / 0.6496 GB, free: 7.328 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.741, allocations: 4 kB / 0.6496 GB, free: 7.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001758/0.7428, allocations: 1.17 MB / 0.6508 GB, free: 6.148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.7428, allocations: 8 kB / 0.6508 GB, free: 6.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.7428, allocations: 16 kB / 0.6508 GB, free: 6.125 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003248/0.7461, allocations: 0.5161 MB / 0.6513 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/0.747, allocations: 267.6 kB / 0.6515 GB, free: 5.344 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.7481, allocations: 1.382 MB / 0.6529 GB, free: 3.918 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009342/0.7491, allocations: 150.7 kB / 0.653 GB, free: 3.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.703e-05/0.7492, allocations: 59.98 kB / 0.6531 GB, free: 3.711 MB / 494.1 MB 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.0004824/0.7497, allocations: 296.4 kB / 0.6534 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/0.7499, allocations: 126.5 kB / 0.6535 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004461/0.7543, allocations: 4.412 MB / 0.6578 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.85e-05/0.7544, allocations: 43.92 kB / 0.6578 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.7544, allocations: 0 / 0.6578 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.7544, allocations: 7.984 kB / 0.6579 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005105/0.7595, allocations: 4.823 MB / 0.6626 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.7596, allocations: 0 / 0.6626 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007569/0.7603, allocations: 147.8 kB / 0.6627 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003951/0.7643, allocations: 1.608 MB / 0.6643 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/0.7644, allocations: 27.95 kB / 0.6643 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.7658, allocations: 1.747 MB / 0.666 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7658, allocations: 4.094 kB / 0.666 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.768, allocations: 1.94 MB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/0.7685, allocations: 353.8 kB / 0.6682 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.7687, allocations: 19.95 kB / 0.6683 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.7692, allocations: 63.81 kB / 0.6683 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-05/0.7693, allocations: 44.5 kB / 0.6684 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.217e-05/0.7693, allocations: 35.98 kB / 0.6684 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001028/0.7704, allocations: 0.8185 MB / 0.6692 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7704, allocations: 0 / 0.6692 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004187/0.7746, allocations: 1.265 MB / 0.6704 GB, free: 1.602 MB / 0.4981 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.007485/0.7821, allocations: 3.727 MB / 0.6741 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002497/0.7846, allocations: 1.165 MB / 0.6752 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.7846, allocations: 0 / 0.6752 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.7861, allocations: 0.8493 MB / 0.676 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003491/0.7896, allocations: 0.6701 MB / 0.6767 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.8075, allocations: 17.7 MB / 0.694 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009345/0.8085, allocations: 1.347 MB / 0.6953 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001462/0.81, allocations: 0.6097 MB / 0.6959 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007274/0.8107, allocations: 0.6438 MB / 0.6965 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of SimCode: time 1.122e-06/0.8107, allocations: 0 / 0.6965 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3649/1.176, allocations: 70.14 MB / 0.765 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/1.176, allocations: 278.3 kB / 0.7653 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.124/6.3, allocations: 2.812 kB / 0.7653 GB, free: 151.4 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat