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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008765/0.0008764, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.116/1.116, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007371/0.0007369, allocations: 97.75 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.259/0.259, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002064/0.0002065, allocations: 7.984 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2338, allocations: 62.96 MB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice): time 0.1491/0.383, allocations: 167 MB / 0.679 GB, free: 2.004 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.2364/0.6194, allocations: 3.126 MB / 0.6821 GB, free: 5.164 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005272/0.62, allocations: 18.81 kB / 0.6821 GB, free: 5.164 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007612/0.6207, allocations: 246.5 kB / 0.6824 GB, free: 5.164 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: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.003215/0.624, allocations: 1.223 MB / 0.6835 GB, free: 5.121 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001497/0.6255, allocations: 0.5948 MB / 0.6841 GB, free: 5.105 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002051/0.6275, allocations: 1.765 MB / 0.6859 GB, free: 5.105 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.628, allocations: 365.6 kB / 0.6862 GB, free: 5.07 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006948/0.6287, allocations: 0.5177 MB / 0.6867 GB, free: 5.066 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.6291, allocations: 451.2 kB / 0.6871 GB, free: 5.066 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.6292, allocations: 28.81 kB / 0.6872 GB, free: 5.066 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001967/0.6312, allocations: 1.055 MB / 0.6882 GB, free: 5.051 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.6313, allocations: 132 kB / 0.6883 GB, free: 5.051 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.6316, allocations: 344.9 kB / 0.6886 GB, free: 5.016 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.6327, allocations: 1.056 MB / 0.6897 GB, free: 4.941 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.6327, allocations: 2.375 kB / 0.6897 GB, free: 4.941 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.6327, allocations: 0 / 0.6897 GB, free: 4.941 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.6327, allocations: 0 / 0.6897 GB, free: 4.941 MB / 490.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.001655/0.6344, allocations: 0.9174 MB / 0.6906 GB, free: 20.33 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.6344, allocations: 11.06 kB / 0.6906 GB, free: 20.33 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.136e-05/0.6345, allocations: 81.17 kB / 0.6907 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008172/0.6354, allocations: 138.9 kB / 0.6908 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.6359, allocations: 484.1 kB / 0.6913 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.636, allocations: 30.75 kB / 0.6913 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.729e-05/0.636, allocations: 37.62 kB / 0.6913 GB, free: 20 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009202/0.6369, allocations: 0.5987 MB / 0.6919 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.637, allocations: 5.75 kB / 0.6919 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.637, allocations: 21.72 kB / 0.6919 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.637, allocations: 11.12 kB / 0.6919 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007848/0.6378, allocations: 489.4 kB / 0.6924 GB, free: 19.87 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.002643/0.6405, allocations: 2.68 MB / 0.695 GB, free: 18.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007614/0.6413, allocations: 363 kB / 0.6954 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.6416, allocations: 175 kB / 0.6955 GB, free: 18.03 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003987/0.642, allocations: 441.6 kB / 0.696 GB, free: 17.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.642, allocations: 37.66 kB / 0.696 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 1.704e-06/0.642, allocations: 0 / 0.696 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.001713/0.6438, allocations: 0.7422 MB / 0.6967 GB, free: 17.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.6438, allocations: 133.4 kB / 0.6969 GB, free: 17.19 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005371/0.6444, allocations: 0.4884 MB / 0.6973 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.6444, allocations: 30.83 kB / 0.6974 GB, free: 17.04 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.6446, allocations: 286.5 kB / 0.6976 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.535e-05/0.6447, allocations: 111.6 kB / 0.6977 GB, free: 16.82 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.6447, allocations: 11.2 kB / 0.6978 GB, free: 16.82 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6449, allocations: 368.6 kB / 0.6981 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.6452, allocations: 148.4 kB / 0.6982 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/0.6455, allocations: 289 kB / 0.6985 GB, free: 16.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.6461, allocations: 450.2 kB / 0.6989 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.6461, allocations: 2.062 kB / 0.699 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009282/0.6471, allocations: 0.5531 MB / 0.6995 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.6471, allocations: 6.312 kB / 0.6995 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.6471, allocations: 2.25 kB / 0.6995 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001474/0.6486, allocations: 291.7 kB / 0.6998 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.6489, allocations: 107 kB / 0.6999 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004035/0.6494, allocations: 0.6014 MB / 0.7005 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.6497, allocations: 63.56 kB / 0.7005 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.237e-05/0.6498, allocations: 46.23 kB / 0.7006 GB, free: 15.57 MB / 0.4948 GB 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.0002261/0.65, allocations: 182.5 kB / 0.7007 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.6501, allocations: 55.91 kB / 0.7008 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.6522, allocations: 1.116 MB / 0.7019 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.6522, allocations: 6.141 kB / 0.7019 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6522, allocations: 1.672 kB / 0.7019 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.6522, allocations: 1.875 kB / 0.7019 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.6538, allocations: 1.031 MB / 0.7029 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6538, allocations: 1.062 kB / 0.7029 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.654, allocations: 55.64 kB / 0.703 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003307/0.6573, allocations: 0.5399 MB / 0.7035 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.6574, allocations: 9.344 kB / 0.7035 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004198/0.6578, allocations: 0.6199 MB / 0.7041 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6578, allocations: 4.094 kB / 0.7041 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007851/0.6586, allocations: 0.5103 MB / 0.7046 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.6588, allocations: 158 kB / 0.7048 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.6589, allocations: 10.81 kB / 0.7048 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000346/0.6592, allocations: 41.03 kB / 0.7048 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.6593, allocations: 25.08 kB / 0.7048 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.6593, allocations: 16.94 kB / 0.7048 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000457/0.6598, allocations: 388.5 kB / 0.7052 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6598, allocations: 1.25 kB / 0.7052 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000875/0.6607, allocations: 291.6 kB / 0.7055 GB, free: 13.82 MB / 0.4948 GB 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.001761/0.6625, allocations: 1.319 MB / 0.7068 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008601/0.6633, allocations: 392.1 kB / 0.7072 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6633, allocations: 2.469 kB / 0.7072 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.6637, allocations: 178.3 kB / 0.7073 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.6652, allocations: 295.3 kB / 0.7076 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/0.6698, allocations: 3.153 MB / 0.7107 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.6703, allocations: 0.8602 MB / 0.7115 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005339/0.6708, allocations: 259.6 kB / 0.7118 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of SimCode: time 4.31e-07/0.6709, allocations: 0.75 kB / 0.7118 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.738/5.409, allocations: 14.48 MB / 0.7259 GB, free: 6.32 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice.fmu > 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/jenkins1/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