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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001414, allocations: 105.8 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001583, allocations: 218.4 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 230.2 MB / 256.1 MB, free: 8.762 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.201/0.201, allocations: 46.89 MB / 359.3 MB, free: 4.984 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.00212/0.00212, allocations: 79.88 kB / 0.494 GB, free: 9.121 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2614, allocations: 65.98 MB / 0.5584 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.06073/0.3221, allocations: 64.01 MB / 0.6209 GB, free: 5.008 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02642/0.3485, allocations: 22.58 MB / 0.643 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009988/0.3495, allocations: 31.75 kB / 0.643 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.3512, allocations: 0.7335 MB / 0.6437 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01363/0.3648, allocations: 5.774 MB / 0.6493 GB, free: 7.805 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00819/0.373, allocations: 3.487 MB / 0.6528 GB, free: 4.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.01719/0.3902, allocations: 8.982 MB / 0.6615 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009855/0.3912, allocations: 0.5518 MB / 0.6621 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.3929, allocations: 1.039 MB / 0.6631 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00097/0.3939, allocations: 0.809 MB / 0.6639 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.394, allocations: 87.94 kB / 0.664 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01455/0.4086, allocations: 7.684 MB / 0.6715 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.4089, allocations: 270.8 kB / 0.6717 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008527/0.4097, allocations: 0.6881 MB / 0.6724 GB, free: 72 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.009772/0.4195, allocations: 5.739 MB / 0.678 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4195, allocations: 0 / 0.678 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.542e-06/0.4195, allocations: 4 kB / 0.678 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.4195, allocations: 7.938 kB / 0.678 GB, free: 10.3 MB / 0.5137 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.005542/0.4251, allocations: 2.512 MB / 0.6805 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.4251, allocations: 8.031 kB / 0.6805 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.4253, allocations: 152.3 kB / 0.6806 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003602/0.4289, allocations: 0.5621 MB / 0.6812 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.4303, allocations: 1.009 MB / 0.6821 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.4303, allocations: 78.12 kB / 0.6822 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.4305, allocations: 99.98 kB / 0.6823 GB, free: 5.781 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/0.4337, allocations: 1.604 MB / 0.6839 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.4337, allocations: 7.875 kB / 0.6839 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.4338, allocations: 44 kB / 0.6839 GB, free: 4 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.4338, allocations: 28 kB / 0.684 GB, free: 3.973 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00304/0.4369, allocations: 1.377 MB / 0.6853 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008632/0.4455, allocations: 8.237 MB / 0.6933 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.4484, allocations: 1.603 MB / 0.6949 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004837/0.4489, allocations: 314.5 kB / 0.6952 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3183/0.7672, allocations: 70.65 MB / 0.7642 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.7672, allocations: 43 kB / 0.7642 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=69): time 3.376e-06/0.7672, allocations: 0 / 0.7642 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69): time 0.004443/0.7717, allocations: 1.875 MB / 0.7661 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.7717, allocations: 195.4 kB / 0.7663 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007998/0.7725, allocations: 0.9712 MB / 0.7672 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.7726, allocations: 37.7 kB / 0.7672 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.7728, allocations: 0.5852 MB / 0.7678 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.7729, allocations: 260 kB / 0.7681 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.7731, allocations: 222.8 kB / 0.7683 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.7732, allocations: 341.9 kB / 0.7686 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.7735, allocations: 270.5 kB / 0.7689 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.7739, allocations: 0.7051 MB / 0.7696 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008268/0.7748, allocations: 1.035 MB / 0.7706 GB, free: 129.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.7748, allocations: 4 kB / 0.7706 GB, free: 129.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001316/0.7761, allocations: 1.165 MB / 0.7717 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.7761, allocations: 14.34 kB / 0.7717 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.7761, allocations: 12 kB / 0.7717 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002827/0.779, allocations: 0.5278 MB / 0.7722 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007837/0.7797, allocations: 259.6 kB / 0.7725 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006375/0.7804, allocations: 1.369 MB / 0.7738 GB, free: 126 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.7809, allocations: 136.7 kB / 0.774 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/0.781, allocations: 68.72 kB / 0.774 GB, free: 125.8 MB / 0.5606 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.0002905/0.7813, allocations: 296.5 kB / 0.7743 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.7814, allocations: 127.2 kB / 0.7744 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/0.7843, allocations: 4.318 MB / 0.7786 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/0.7843, allocations: 43.94 kB / 0.7787 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.7843, allocations: 0 / 0.7787 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.7843, allocations: 7.984 kB / 0.7787 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.7874, allocations: 4.772 MB / 0.7834 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.7874, allocations: 0 / 0.7834 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005789/0.788, allocations: 155.8 kB / 0.7835 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.7891, allocations: 0.6785 MB / 0.7842 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/0.7892, allocations: 24 kB / 0.7842 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008054/0.79, allocations: 1.759 MB / 0.7859 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.79, allocations: 0 / 0.7859 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.7914, allocations: 1.907 MB / 0.7878 GB, free: 111.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.7915, allocations: 268.1 kB / 0.788 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.7916, allocations: 46.45 kB / 0.7881 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000398/0.792, allocations: 16 kB / 0.7881 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.7921, allocations: 51.5 kB / 0.7881 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.7921, allocations: 31.98 kB / 0.7882 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006929/0.7928, allocations: 0.8264 MB / 0.789 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.7928, allocations: 0 / 0.789 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002547/0.7954, allocations: 1.286 MB / 0.7902 GB, free: 109.1 MB / 0.5606 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.004675/0.8001, allocations: 3.633 MB / 0.7938 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00171/0.8018, allocations: 1.139 MB / 0.7949 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8018, allocations: 0 / 0.7949 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009696/0.8027, allocations: 0.6888 MB / 0.7956 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.8054, allocations: 0.7189 MB / 0.7963 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009576/0.815, allocations: 10.85 MB / 0.8069 GB, free: 91.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.8154, allocations: 1.312 MB / 0.8081 GB, free: 90.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008093/0.8162, allocations: 0.6159 MB / 0.8087 GB, free: 89.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000483/0.8167, allocations: 0.6477 MB / 0.8094 GB, free: 89.1 MB / 0.5606 GB Notification: Performance of SimCode: time 6.42e-07/0.8167, allocations: 0 / 0.8094 GB, free: 89.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09309/0.9098, allocations: 72.26 MB / 0.8799 GB, free: 17.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.84, allocations: 10.05 kB / 0.88 GB, free: 17.02 MB / 0.5606 GB " [Timeout remaining time 644] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.460745774005773]