Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.207/0.207, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 60.5 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1137, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.472/0.5858, allocations: 181.1 MB / 0.6353 GB, free: 11.33 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007237/0.593, allocations: 4.595 MB / 0.6397 GB, free: 6.719 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008153/0.5939, allocations: 19.88 kB / 0.6398 GB, free: 6.699 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.5952, allocations: 333.7 kB / 0.6401 GB, free: 6.371 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005773/0.601, allocations: 1.776 MB / 0.6418 GB, free: 4.59 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.6037, allocations: 0.9509 MB / 0.6427 GB, free: 3.648 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003159/0.6069, allocations: 1.691 MB / 0.6444 GB, free: 1.949 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.6081, allocations: 447 kB / 0.6448 GB, free: 1.512 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.6104, allocations: 0.8292 MB / 0.6456 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.6116, allocations: 0.4942 MB / 0.6461 GB, free: 188 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.612, allocations: 56 kB / 0.6462 GB, free: 132 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003539/0.6155, allocations: 1.248 MB / 0.6474 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004026/0.6159, allocations: 179.4 kB / 0.6476 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009661/0.6169, allocations: 374.4 kB / 0.6479 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003666/0.6206, allocations: 1.617 MB / 0.6495 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.6206, allocations: 0 / 0.6495 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6206, allocations: 0 / 0.6495 GB, free: 12.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.701e-05/0.6207, allocations: 4 kB / 0.6495 GB, free: 12.71 MB / 494.1 MB 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.002691/0.6234, allocations: 1.11 MB / 0.6506 GB, free: 11.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.6234, allocations: 8.031 kB / 0.6506 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001679/0.6236, allocations: 86.52 kB / 0.6507 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.625, allocations: 159.1 kB / 0.6508 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008928/0.6259, allocations: 492.4 kB / 0.6513 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.626, allocations: 36.98 kB / 0.6513 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.863e-05/0.6261, allocations: 40 kB / 0.6514 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.6273, allocations: 0.6478 MB / 0.652 GB, free: 10 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.6274, allocations: 3.938 kB / 0.652 GB, free: 10 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-05/0.6275, allocations: 24 kB / 0.652 GB, free: 9.977 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.6275, allocations: 12 kB / 0.652 GB, free: 9.965 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.6285, allocations: 499.6 kB / 0.6525 GB, free: 9.473 MB / 494.1 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.003362/0.6319, allocations: 2.652 MB / 0.6551 GB, free: 6.633 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.6326, allocations: 328.3 kB / 0.6554 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.6329, allocations: 156.8 kB / 0.6556 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004713/0.6334, allocations: 441.5 kB / 0.656 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.6334, allocations: 38.56 kB / 0.656 GB, free: 5.578 MB / 494.1 MB Notification: Performance of pre-optimization done (n=35): time 1.934e-06/0.6334, allocations: 0 / 0.656 GB, free: 5.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=35): time 0.001716/0.6352, allocations: 0.7179 MB / 0.6567 GB, free: 4.832 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.6352, allocations: 162.2 kB / 0.6569 GB, free: 4.637 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006466/0.6359, allocations: 0.5223 MB / 0.6574 GB, free: 4.102 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.636, allocations: 29.7 kB / 0.6574 GB, free: 4.066 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.6362, allocations: 303.5 kB / 0.6577 GB, free: 3.766 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.6363, allocations: 126.2 kB / 0.6578 GB, free: 3.641 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.6365, allocations: 118.1 kB / 0.6579 GB, free: 3.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.6366, allocations: 366.8 kB / 0.6583 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.6369, allocations: 141.1 kB / 0.6584 GB, free: 3.012 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004299/0.6374, allocations: 326.9 kB / 0.6587 GB, free: 2.617 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007461/0.6381, allocations: 473.9 kB / 0.6592 GB, free: 2.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.6382, allocations: 0.875 kB / 0.6592 GB, free: 2.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001155/0.6393, allocations: 0.5716 MB / 0.6597 GB, free: 1.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.6394, allocations: 15.88 kB / 0.6598 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.6394, allocations: 4 kB / 0.6598 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.641, allocations: 240.8 kB / 0.66 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003908/0.6414, allocations: 111.9 kB / 0.6601 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004459/0.6419, allocations: 0.5913 MB / 0.6607 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.6423, allocations: 56.48 kB / 0.6607 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.501e-05/0.6424, allocations: 51.98 kB / 0.6608 GB, free: 428 kB / 494.1 MB 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 (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.0002808/0.6427, allocations: 193.6 kB / 0.661 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.6428, allocations: 67.42 kB / 0.661 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.6449, allocations: 1.103 MB / 0.6621 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.645, allocations: 4 kB / 0.6621 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.645, allocations: 0 / 0.6621 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.645, allocations: 0 / 0.6621 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.6465, allocations: 1.017 MB / 0.6631 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.6465, allocations: 0 / 0.6631 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.6467, allocations: 55.89 kB / 0.6632 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003277/0.65, allocations: 440.3 kB / 0.6636 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.65, allocations: 19.94 kB / 0.6636 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004486/0.6505, allocations: 0.5952 MB / 0.6642 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.6505, allocations: 4.031 kB / 0.6642 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008192/0.6513, allocations: 0.4967 MB / 0.6647 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.6515, allocations: 140.3 kB / 0.6648 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.6517, allocations: 19.84 kB / 0.6648 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/0.6521, allocations: 12 kB / 0.6648 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.6522, allocations: 31.84 kB / 0.6649 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/0.6523, allocations: 23.98 kB / 0.6649 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000582/0.6528, allocations: 434.8 kB / 0.6653 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.6528, allocations: 0 / 0.6653 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001045/0.6539, allocations: 291.8 kB / 0.6656 GB, free: 11.32 MB / 0.4981 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 (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.002296/0.6562, allocations: 1.334 MB / 0.6669 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009462/0.6572, allocations: 387.7 kB / 0.6673 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6572, allocations: 0 / 0.6673 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003367/0.6575, allocations: 161.2 kB / 0.6674 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/0.6596, allocations: 400.8 kB / 0.6678 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007712/0.6673, allocations: 5.173 MB / 0.6728 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000616/0.668, allocations: 0.8714 MB / 0.6737 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001667/0.6696, allocations: 0.5824 MB / 0.6743 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004955/0.6702, allocations: 235.3 kB / 0.6745 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of SimCode: time 1.793e-06/0.6702, allocations: 0 / 0.6745 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05924/0.7294, allocations: 22.81 MB / 0.6968 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.61, allocations: 20.38 kB / 0.6968 GB, free: 11.36 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches