Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.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: translateModel(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") translateModel(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|boundary.ports.1..m_flow|boundary.ports.1..p|boundary.ports.1..h_outflow|sensor.port_b.m_flow|sensor.port_b.p|sensor.port_b.h_outflow|fitting1.port_b.m_flow|fitting1.port_b.p|fitting1.port_b.h_outflow|fitting2.port_b.m_flow|fitting2.port_b.p|fitting2.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009029/0.0009029, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.6 MB / 243.1 MB, free: 12.36 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007861/0.0007861, allocations: 97.77 kB / 295.1 MB, free: 4.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.17/0.17, allocations: 44.83 MB / 392 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002257/0.0002257, allocations: 12 kB / 464.8 MB, free: 68.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08111/0.08135, allocations: 62.95 MB / 0.5153 GB, free: 5.078 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice): time 0.3241/0.4055, allocations: 166.9 MB / 0.6783 GB, free: 14.5 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.004295/0.4098, allocations: 3.133 MB / 0.6814 GB, free: 11.36 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002948/0.4101, allocations: 19.88 kB / 0.6814 GB, free: 11.34 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006123/0.4108, allocations: 250.3 kB / 0.6817 GB, free: 11.09 MB / 474.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: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.002489/0.4133, allocations: 1.19 MB / 0.6828 GB, free: 9.902 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.4146, allocations: 0.5736 MB / 0.6834 GB, free: 9.336 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.4161, allocations: 1.758 MB / 0.6851 GB, free: 7.574 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000405/0.4166, allocations: 347.7 kB / 0.6854 GB, free: 7.234 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006077/0.4172, allocations: 0.5097 MB / 0.6859 GB, free: 6.723 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004411/0.4176, allocations: 454.2 kB / 0.6864 GB, free: 6.277 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 6.645e-05/0.4177, allocations: 28 kB / 0.6864 GB, free: 6.25 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.4193, allocations: 1.015 MB / 0.6874 GB, free: 5.234 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.4194, allocations: 131.5 kB / 0.6875 GB, free: 5.105 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.4195, allocations: 153.4 kB / 0.6877 GB, free: 4.949 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.4206, allocations: 1.044 MB / 0.6887 GB, free: 3.902 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.4206, allocations: 4 kB / 0.6887 GB, free: 3.898 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4206, allocations: 0 / 0.6887 GB, free: 3.898 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.4206, allocations: 0 / 0.6887 GB, free: 3.898 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001423/0.4221, allocations: 0.9193 MB / 0.6896 GB, free: 2.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.4221, allocations: 8.031 kB / 0.6896 GB, free: 2.922 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008881/0.423, allocations: 151 kB / 0.6897 GB, free: 2.773 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005769/0.4236, allocations: 464.8 kB / 0.6902 GB, free: 2.277 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.4236, allocations: 29 kB / 0.6902 GB, free: 2.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.4237, allocations: 40 kB / 0.6902 GB, free: 2.211 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009954/0.4247, allocations: 0.5945 MB / 0.6908 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.4247, allocations: 0 / 0.6908 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/0.4248, allocations: 23.94 kB / 0.6908 GB, free: 1.551 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.4248, allocations: 12 kB / 0.6909 GB, free: 1.539 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008569/0.4257, allocations: 495.5 kB / 0.6913 GB, free: 1.059 MB / 474.7 MB 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.002625/0.4283, allocations: 2.667 MB / 0.6939 GB, free: 14.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.429, allocations: 355.5 kB / 0.6943 GB, free: 13.81 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.4293, allocations: 185.2 kB / 0.6944 GB, free: 13.63 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003667/0.4297, allocations: 437.8 kB / 0.6949 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.4297, allocations: 38.84 kB / 0.6949 GB, free: 13.06 MB / 490.7 MB Notification: Performance of pre-optimization done (n=33): time 1.533e-06/0.4297, allocations: 4 kB / 0.6949 GB, free: 13.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.001569/0.4313, allocations: 0.746 MB / 0.6956 GB, free: 12.29 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.4314, allocations: 132.5 kB / 0.6958 GB, free: 12.12 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005/0.4319, allocations: 494 kB / 0.6962 GB, free: 11.63 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.4319, allocations: 33.64 kB / 0.6963 GB, free: 11.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.4321, allocations: 283.8 kB / 0.6965 GB, free: 11.31 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.583e-05/0.4322, allocations: 122.2 kB / 0.6966 GB, free: 11.19 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.4322, allocations: 16 kB / 0.6967 GB, free: 11.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4324, allocations: 358.8 kB / 0.697 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.4327, allocations: 152.8 kB / 0.6972 GB, free: 10.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003727/0.4331, allocations: 279.7 kB / 0.6974 GB, free: 10.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.4334, allocations: 193 kB / 0.6976 GB, free: 10.15 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4334, allocations: 4 kB / 0.6976 GB, free: 10.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009003/0.4343, allocations: 0.5443 MB / 0.6981 GB, free: 9.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4343, allocations: 4 kB / 0.6981 GB, free: 9.586 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4344, allocations: 7.953 kB / 0.6981 GB, free: 9.578 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/0.4359, allocations: 297 kB / 0.6984 GB, free: 9.285 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.4362, allocations: 111.8 kB / 0.6985 GB, free: 9.176 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004042/0.4366, allocations: 0.5952 MB / 0.6991 GB, free: 8.555 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.437, allocations: 63.56 kB / 0.6992 GB, free: 8.492 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.706e-05/0.437, allocations: 44 kB / 0.6992 GB, free: 8.449 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (44): * Single equations (assignments): 43 * 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.0002145/0.4373, allocations: 181.7 kB / 0.6994 GB, free: 8.262 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.068e-05/0.4373, allocations: 55.34 kB / 0.6994 GB, free: 8.207 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.4392, allocations: 1.112 MB / 0.7005 GB, free: 7.074 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4392, allocations: 4 kB / 0.7005 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.4392, allocations: 0 / 0.7005 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.4392, allocations: 3.984 kB / 0.7005 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.4406, allocations: 1.034 MB / 0.7016 GB, free: 5.957 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4406, allocations: 3.984 kB / 0.7016 GB, free: 5.953 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.4408, allocations: 60.12 kB / 0.7016 GB, free: 5.895 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003219/0.444, allocations: 0.5354 MB / 0.7021 GB, free: 5.355 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.444, allocations: 8 kB / 0.7021 GB, free: 5.348 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003824/0.4444, allocations: 0.6186 MB / 0.7027 GB, free: 4.703 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4444, allocations: 0 / 0.7027 GB, free: 4.703 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.4452, allocations: 0.5222 MB / 0.7033 GB, free: 4.148 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.4453, allocations: 160.3 kB / 0.7034 GB, free: 3.973 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.4454, allocations: 11.95 kB / 0.7034 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.4458, allocations: 35.97 kB / 0.7035 GB, free: 3.926 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/0.4458, allocations: 23.97 kB / 0.7035 GB, free: 3.902 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.4459, allocations: 19.98 kB / 0.7035 GB, free: 3.883 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004148/0.4463, allocations: 386.8 kB / 0.7039 GB, free: 3.508 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.552e-06/0.4463, allocations: 0 / 0.7039 GB, free: 3.508 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007273/0.447, allocations: 287.6 kB / 0.7041 GB, free: 3.227 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (27): * Single equations (assignments): 26 * 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.0007228/0.4477, allocations: 376.7 kB / 0.7045 GB, free: 2.855 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0007439/0.4485, allocations: 380.4 kB / 0.7049 GB, free: 2.484 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4485, allocations: 8 kB / 0.7049 GB, free: 2.477 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.4489, allocations: 172.3 kB / 0.705 GB, free: 2.309 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.4502, allocations: 296.3 kB / 0.7053 GB, free: 2.023 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.4515, allocations: 1.127 MB / 0.7064 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.4519, allocations: 0.8594 MB / 0.7073 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.4522, allocations: 123.4 kB / 0.7074 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of SimCode: time 2.4e-07/0.4522, allocations: 0 / 0.7074 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of Templates: time 0.01593/0.4682, allocations: 14.02 MB / 0.7211 GB, free: 1.871 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/NewFittings/Orifices/ThickEdgedOrifice/ThickEdgedOrifice.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches