Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 200.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.5 MB / 243.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007822/0.0007823, allocations: 96.08 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2931/0.2931, allocations: 44.81 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002635, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2935, allocations: 62.96 MB / 0.516 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.1537/0.4473, allocations: 165.1 MB / 0.6772 GB, free: 3.887 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.2554/0.7027, allocations: 4.348 MB / 0.6815 GB, free: 5.195 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006727/0.7035, allocations: 17.97 kB / 0.6815 GB, free: 5.195 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007968/0.7043, allocations: 260.9 kB / 0.6817 GB, free: 5.195 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004043/0.7083, allocations: 1.525 MB / 0.6832 GB, free: 5.172 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002137/0.7105, allocations: 0.7814 MB / 0.684 GB, free: 5.152 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002402/0.7129, allocations: 1.892 MB / 0.6858 GB, free: 5.152 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.7134, allocations: 380 kB / 0.6862 GB, free: 5.117 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.7147, allocations: 0.7571 MB / 0.6869 GB, free: 5.105 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005315/0.7153, allocations: 0.4925 MB / 0.6874 GB, free: 5.102 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.7154, allocations: 27.84 kB / 0.6874 GB, free: 5.102 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002157/0.7175, allocations: 1.145 MB / 0.6886 GB, free: 5.086 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.7177, allocations: 146.3 kB / 0.6887 GB, free: 5.086 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005952/0.7183, allocations: 363.1 kB / 0.689 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001333/0.7196, allocations: 1.156 MB / 0.6902 GB, free: 20.97 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.7197, allocations: 5.969 kB / 0.6902 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7197, allocations: 0 / 0.6902 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.465e-06/0.7197, allocations: 2.719 kB / 0.6902 GB, free: 20.96 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001521/0.7212, allocations: 0.943 MB / 0.6911 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.7213, allocations: 14.38 kB / 0.6911 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.944e-05/0.7214, allocations: 85.12 kB / 0.6912 GB, free: 20.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.7224, allocations: 165.7 kB / 0.6914 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006667/0.7231, allocations: 494.3 kB / 0.6918 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.7232, allocations: 34.94 kB / 0.6919 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.422e-05/0.7232, allocations: 40.06 kB / 0.6919 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.7244, allocations: 0.6465 MB / 0.6925 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.7244, allocations: 2.906 kB / 0.6925 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.7245, allocations: 31.73 kB / 0.6926 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.7245, allocations: 10.94 kB / 0.6926 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009019/0.7254, allocations: 0.4909 MB / 0.693 GB, free: 19.86 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003403/0.7289, allocations: 2.643 MB / 0.6956 GB, free: 18.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006973/0.7296, allocations: 329.6 kB / 0.6959 GB, free: 18.13 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.7298, allocations: 159.7 kB / 0.6961 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000414/0.7303, allocations: 436.8 kB / 0.6965 GB, free: 17.65 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.7303, allocations: 46.66 kB / 0.6966 GB, free: 17.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=35): time 2.605e-06/0.7303, allocations: 0 / 0.6966 GB, free: 17.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35): time 0.001527/0.7318, allocations: 0.7078 MB / 0.6972 GB, free: 17.44 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/0.7319, allocations: 162.7 kB / 0.6974 GB, free: 17.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005673/0.7325, allocations: 0.5218 MB / 0.6979 GB, free: 17.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.303e-05/0.7326, allocations: 32.48 kB / 0.6979 GB, free: 17.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.7328, allocations: 304 kB / 0.6982 GB, free: 16.94 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.592e-05/0.7329, allocations: 125 kB / 0.6984 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.7329, allocations: 8.375 kB / 0.6984 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.7331, allocations: 360.6 kB / 0.6987 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.7333, allocations: 146.9 kB / 0.6988 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.7337, allocations: 330.9 kB / 0.6992 GB, free: 16.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.7343, allocations: 478.1 kB / 0.6996 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7343, allocations: 2.031 kB / 0.6996 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009364/0.7352, allocations: 0.5759 MB / 0.7002 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.7353, allocations: 10.09 kB / 0.7002 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.7353, allocations: 4.688 kB / 0.7002 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/0.7369, allocations: 290.2 kB / 0.7005 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.7373, allocations: 119.5 kB / 0.7006 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004257/0.7377, allocations: 0.5859 MB / 0.7012 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.7382, allocations: 68.38 kB / 0.7012 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.694e-05/0.7383, allocations: 57.75 kB / 0.7013 GB, free: 15.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002966/0.7386, allocations: 195.8 kB / 0.7015 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.7387, allocations: 58.31 kB / 0.7015 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/0.7409, allocations: 1.101 MB / 0.7026 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.7409, allocations: 4.172 kB / 0.7026 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.7409, allocations: 0 / 0.7026 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.7409, allocations: 1.922 kB / 0.7026 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.7425, allocations: 1.01 MB / 0.7036 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.7425, allocations: 4.781 kB / 0.7036 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.7428, allocations: 58.34 kB / 0.7036 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003308/0.7461, allocations: 0.5378 MB / 0.7042 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.7461, allocations: 8.625 kB / 0.7042 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004128/0.7465, allocations: 0.5947 MB / 0.7048 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7466, allocations: 2.719 kB / 0.7048 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/0.7473, allocations: 0.4965 MB / 0.7052 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.7475, allocations: 164.2 kB / 0.7054 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.871e-05/0.7476, allocations: 10.19 kB / 0.7054 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.748, allocations: 24.28 kB / 0.7054 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.748, allocations: 32.91 kB / 0.7055 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.77e-05/0.7481, allocations: 22.48 kB / 0.7055 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004892/0.7486, allocations: 411.3 kB / 0.7059 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7486, allocations: 0.8438 kB / 0.7059 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009544/0.7495, allocations: 299.3 kB / 0.7062 GB, free: 13.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001972/0.7515, allocations: 1.328 MB / 0.7075 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008497/0.7524, allocations: 375.6 kB / 0.7078 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.7524, allocations: 1.062 kB / 0.7078 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.7527, allocations: 159.2 kB / 0.708 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.7546, allocations: 341.1 kB / 0.7083 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004886/0.7595, allocations: 3.277 MB / 0.7115 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.7599, allocations: 0.8658 MB / 0.7123 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005824/0.7605, allocations: 282.9 kB / 0.7126 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of SimCode: time 4.31e-07/0.7605, allocations: 0 / 0.7126 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.024/5.784, allocations: 15.28 MB / 0.7275 GB, free: 5.578 MB / 0.4948 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/TestCases/PressureLoss/Orifice/Orifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches