Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001888/0.001889, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 71.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4013, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice): time 0.2229/0.6242, allocations: 186 MB / 0.7122 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00695/0.6312, allocations: 3.264 MB / 0.7153 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008876/0.6321, allocations: 15.94 kB / 0.7154 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.6333, allocations: 325.8 kB / 0.7157 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004772/0.6381, allocations: 1.406 MB / 0.717 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.6403, allocations: 0.7369 MB / 0.7178 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.4336/1.074, allocations: 1.564 MB / 0.7193 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009067/1.075, allocations: 428.5 kB / 0.7197 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00121/1.076, allocations: 0.5963 MB / 0.7203 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007079/1.077, allocations: 467.6 kB / 0.7207 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001373/1.077, allocations: 52.81 kB / 0.7208 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/1.079, allocations: 1.207 MB / 0.722 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001812/1.08, allocations: 155.4 kB / 0.7221 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000446/1.08, allocations: 346.1 kB / 0.7224 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002791/1.083, allocations: 1.513 MB / 0.7239 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.083, allocations: 1.891 kB / 0.7239 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.683e-06/1.083, allocations: 0 / 0.7239 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.366e-05/1.083, allocations: 1.844 kB / 0.7239 GB, free: 3.223 MB / 0.5606 GB 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.002427/1.085, allocations: 1.082 MB / 0.725 GB, free: 18.58 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/1.085, allocations: 9.125 kB / 0.725 GB, free: 18.58 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/1.086, allocations: 85.17 kB / 0.7251 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/1.087, allocations: 143.4 kB / 0.7252 GB, free: 18.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009665/1.088, allocations: 497.1 kB / 0.7257 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.296e-05/1.088, allocations: 35.12 kB / 0.7257 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-05/1.088, allocations: 38.69 kB / 0.7257 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/1.089, allocations: 0.5925 MB / 0.7263 GB, free: 18.14 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/1.089, allocations: 4.094 kB / 0.7263 GB, free: 18.14 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/1.089, allocations: 21.84 kB / 0.7263 GB, free: 18.14 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/1.089, allocations: 11.16 kB / 0.7264 GB, free: 18.14 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/1.09, allocations: 483.6 kB / 0.7268 GB, free: 18.13 MB / 0.5762 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.003534/1.094, allocations: 2.673 MB / 0.7294 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/1.094, allocations: 364.2 kB / 0.7298 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/1.095, allocations: 167.5 kB / 0.7299 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004545/1.095, allocations: 442 kB / 0.7304 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/1.095, allocations: 38.03 kB / 0.7304 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 2.003e-06/1.095, allocations: 0 / 0.7304 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.001773/1.097, allocations: 0.7287 MB / 0.7311 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.682e-05/1.097, allocations: 138.1 kB / 0.7312 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/1.098, allocations: 0.4887 MB / 0.7317 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.921e-05/1.098, allocations: 32.98 kB / 0.7317 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/1.098, allocations: 284.9 kB / 0.732 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.128e-05/1.098, allocations: 130.6 kB / 0.7321 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/1.098, allocations: 104.8 kB / 0.7322 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001433/1.098, allocations: 359.7 kB / 0.7326 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/1.099, allocations: 152.5 kB / 0.7327 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/1.099, allocations: 285.6 kB / 0.733 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006473/1.1, allocations: 439.6 kB / 0.7334 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.1, allocations: 0 / 0.7334 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009053/1.101, allocations: 0.5517 MB / 0.734 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/1.101, allocations: 6.438 kB / 0.734 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.101, allocations: 2.938 kB / 0.734 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/1.102, allocations: 241.7 kB / 0.7342 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/1.103, allocations: 106.8 kB / 0.7343 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004709/1.103, allocations: 0.5988 MB / 0.7349 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004003/1.103, allocations: 50.23 kB / 0.7349 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/1.104, allocations: 45.58 kB / 0.735 GB, free: 13.87 MB / 0.5762 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000263/1.104, allocations: 178.2 kB / 0.7351 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/1.104, allocations: 54.86 kB / 0.7352 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/1.106, allocations: 1.088 MB / 0.7363 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.106, allocations: 7.125 kB / 0.7363 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/1.106, allocations: 3.844 kB / 0.7363 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.106, allocations: 2.859 kB / 0.7363 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/1.107, allocations: 1.039 MB / 0.7373 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.107, allocations: 4.438 kB / 0.7373 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/1.107, allocations: 56.06 kB / 0.7373 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00309/1.11, allocations: 444.6 kB / 0.7378 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/1.11, allocations: 12.94 kB / 0.7378 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004239/1.111, allocations: 0.603 MB / 0.7384 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.111, allocations: 8.062 kB / 0.7384 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007955/1.112, allocations: 0.5115 MB / 0.7389 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/1.112, allocations: 139.2 kB / 0.739 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/1.112, allocations: 16.42 kB / 0.739 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/1.112, allocations: 16.12 kB / 0.739 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/1.112, allocations: 33 kB / 0.7391 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/1.112, allocations: 17.09 kB / 0.7391 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000483/1.113, allocations: 423 kB / 0.7395 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.31e-07/1.113, allocations: 0 / 0.7395 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009701/1.114, allocations: 281.4 kB / 0.7398 GB, free: 12.19 MB / 0.5762 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001901/1.116, allocations: 1.352 MB / 0.7411 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008489/1.117, allocations: 381 kB / 0.7414 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/1.117, allocations: 0.9375 kB / 0.7414 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003205/1.117, allocations: 167.5 kB / 0.7416 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/1.119, allocations: 356.8 kB / 0.7419 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006401/1.125, allocations: 4.927 MB / 0.7468 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/1.125, allocations: 0.8593 MB / 0.7476 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001057/1.127, allocations: 0.565 MB / 0.7481 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003596/1.127, allocations: 231.4 kB / 0.7484 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of SimCode: time 1.322e-06/1.127, allocations: 0.625 kB / 0.7484 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/1.171, allocations: 21.62 MB / 0.7695 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.59, allocations: 7.688 kB / 0.7695 GB, free: 4.172 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_NewFittings_Orifices_ThickEdgedOrifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/NewFittings/Orifices/ThickEdgedOrifice/ThickEdgedOrifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.NewFittings.Orifices.ThickEdgedOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches