Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 183.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 88.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.527/0.527, allocations: 43.56 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004682, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1307, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.4/0.5308, allocations: 53.08 MB / 0.5307 GB, free: 13.37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03197/0.5628, allocations: 19.28 MB / 0.5495 GB, free: 15.84 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.5649, allocations: 34.66 kB / 0.5495 GB, free: 15.82 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002985/0.5679, allocations: 0.5686 MB / 0.5501 GB, free: 15.51 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02181/0.5898, allocations: 4.87 MB / 0.5548 GB, free: 12.96 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0123/0.6021, allocations: 2.735 MB / 0.5575 GB, free: 11.43 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03784/0.64, allocations: 12.66 MB / 0.5699 GB, free: 9.125 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.6417, allocations: 0.5629 MB / 0.5704 GB, free: 8.555 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003022/0.6447, allocations: 0.8916 MB / 0.5713 GB, free: 7.66 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001638/0.6464, allocations: 0.6107 MB / 0.5719 GB, free: 7.047 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002468/0.6467, allocations: 44 kB / 0.5719 GB, free: 7.004 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02334/0.67, allocations: 7.418 MB / 0.5792 GB, free: 15.58 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006631/0.6707, allocations: 223.1 kB / 0.5794 GB, free: 15.36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007681/0.6715, allocations: 293 kB / 0.5797 GB, free: 15.07 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.6825, allocations: 3.855 MB / 0.5834 GB, free: 11.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.6825, allocations: 4 kB / 0.5834 GB, free: 11.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.6826, allocations: 0 / 0.5834 GB, free: 11.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.6826, allocations: 7.938 kB / 0.5834 GB, free: 11.19 MB / 410.7 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.008861/0.6915, allocations: 2.178 MB / 0.5856 GB, free: 8.961 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.6915, allocations: 8.031 kB / 0.5856 GB, free: 8.953 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003573/0.6919, allocations: 152.2 kB / 0.5857 GB, free: 8.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005502/0.6974, allocations: 0.5564 MB / 0.5863 GB, free: 8.238 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.6999, allocations: 0.9259 MB / 0.5872 GB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.484e-05/0.7001, allocations: 73.88 kB / 0.5872 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002123/0.7003, allocations: 99.95 kB / 0.5873 GB, free: 7.105 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005258/0.7055, allocations: 1.598 MB / 0.5889 GB, free: 5.387 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.315e-05/0.7056, allocations: 11.94 kB / 0.5889 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.7058, allocations: 44 kB / 0.5889 GB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.28e-05/0.7059, allocations: 28 kB / 0.589 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004913/0.7108, allocations: 1.357 MB / 0.5903 GB, free: 3.945 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01497/0.7258, allocations: 8.267 MB / 0.5984 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004492/0.7304, allocations: 1.645 MB / 0.6 GB, free: 9.262 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2315/0.9619, allocations: 63.98 MB / 0.6625 GB, free: 1.766 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.962, allocations: 43 kB / 0.6625 GB, free: 1.715 MB / 490.7 MB Notification: Performance of pre-optimization done (n=69): time 3.587e-06/0.962, allocations: 0 / 0.6625 GB, free: 1.715 MB / 490.7 MB Notification: Performance of matching and sorting (n=69): time 0.008419/0.9704, allocations: 1.872 MB / 0.6643 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.9706, allocations: 188.4 kB / 0.6645 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.9725, allocations: 0.9528 MB / 0.6654 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.9727, allocations: 37.7 kB / 0.6655 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005915/0.9733, allocations: 0.5556 MB / 0.666 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003179/0.9736, allocations: 252.5 kB / 0.6663 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.9737, allocations: 28 kB / 0.6663 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.9739, allocations: 346.8 kB / 0.6666 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007879/0.9747, allocations: 266.4 kB / 0.6669 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.9759, allocations: 0.6964 MB / 0.6675 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.977, allocations: 386.9 kB / 0.6679 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/0.977, allocations: 4 kB / 0.6679 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002988/0.98, allocations: 1.086 MB / 0.669 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.98, allocations: 12.97 kB / 0.669 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/0.9801, allocations: 12 kB / 0.669 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005963/0.9861, allocations: 0.5196 MB / 0.6695 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.988, allocations: 263.6 kB / 0.6698 GB, free: 9.945 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.9898, allocations: 1.374 MB / 0.6711 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.9915, allocations: 162.6 kB / 0.6713 GB, free: 8.363 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/0.9917, allocations: 60 kB / 0.6713 GB, free: 8.305 MB / 0.4948 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.0007854/0.9925, allocations: 299.6 kB / 0.6716 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/0.9929, allocations: 126.5 kB / 0.6717 GB, free: 7.879 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008211/1.001, allocations: 4.413 MB / 0.676 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-05/1.001, allocations: 51.86 kB / 0.6761 GB, free: 3.398 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/1.001, allocations: 0 / 0.6761 GB, free: 3.398 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/1.001, allocations: 3.984 kB / 0.6761 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3577/1.359, allocations: 4.812 MB / 0.6808 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/1.359, allocations: 0.75 kB / 0.6808 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/1.361, allocations: 151.6 kB / 0.6809 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007552/1.368, allocations: 1.598 MB / 0.6825 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/1.368, allocations: 22.25 kB / 0.6825 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/1.37, allocations: 1.752 MB / 0.6842 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.37, allocations: 1.375 kB / 0.6842 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003913/1.374, allocations: 1.94 MB / 0.6861 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007592/1.375, allocations: 359 kB / 0.6865 GB, free: 160 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/1.375, allocations: 17.31 kB / 0.6865 GB, free: 160 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/1.376, allocations: 55.55 kB / 0.6865 GB, free: 160 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/1.377, allocations: 53.48 kB / 0.6866 GB, free: 160 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.713e-05/1.377, allocations: 29.55 kB / 0.6866 GB, free: 160 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00179/1.378, allocations: 0.8244 MB / 0.6874 GB, free: 159.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.462e-06/1.378, allocations: 0 / 0.6874 GB, free: 159.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005072/1.384, allocations: 1.27 MB / 0.6887 GB, free: 159.8 MB / 0.4948 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.01164/1.395, allocations: 3.707 MB / 0.6923 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003797/1.399, allocations: 1.159 MB / 0.6934 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.399, allocations: 0 / 0.6934 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.402, allocations: 0.8636 MB / 0.6942 GB, free: 157.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006/1.408, allocations: 0.6798 MB / 0.6949 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/1.429, allocations: 17.72 MB / 0.7122 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/1.43, allocations: 1.337 MB / 0.7135 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/1.431, allocations: 0.6418 MB / 0.7142 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.673e-06/1.431, allocations: 0 / 0.7142 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.097/5.528, allocations: 57.74 MB / 0.7705 GB, free: 105.1 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat