Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.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.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0007609/0.000761, allocations: 96.81 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000861/0.000861, allocations: 201.5 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003287, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1438, allocations: 63.57 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.4902/0.634, allocations: 179.6 MB / 0.6472 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006652/0.6407, allocations: 4.659 MB / 0.6518 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006843/0.6414, allocations: 19.81 kB / 0.6518 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009379/0.6424, allocations: 290.4 kB / 0.6521 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004887/0.6473, allocations: 1.573 MB / 0.6536 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002954/0.6502, allocations: 0.8677 MB / 0.6545 GB, free: 9.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.6536, allocations: 2.197 MB / 0.6566 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007998/0.6544, allocations: 389.9 kB / 0.657 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001913/0.6563, allocations: 0.7629 MB / 0.6577 GB, free: 6.168 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.6574, allocations: 0.498 MB / 0.6582 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.6576, allocations: 28 kB / 0.6582 GB, free: 5.641 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003112/0.6607, allocations: 1.213 MB / 0.6594 GB, free: 4.426 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002648/0.661, allocations: 159.4 kB / 0.6596 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000577/0.6616, allocations: 376 kB / 0.6599 GB, free: 3.895 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.6646, allocations: 1.601 MB / 0.6615 GB, free: 2.289 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.6646, allocations: 0 / 0.6615 GB, free: 2.289 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6646, allocations: 0 / 0.6615 GB, free: 2.289 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.6647, allocations: 3.938 kB / 0.6615 GB, free: 2.285 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.002331/0.667, allocations: 0.9511 MB / 0.6624 GB, free: 1.281 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.6671, allocations: 8.031 kB / 0.6624 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000233/0.6673, allocations: 90.52 kB / 0.6625 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.6687, allocations: 163.1 kB / 0.6627 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008037/0.6695, allocations: 0.4885 MB / 0.6632 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.6696, allocations: 37 kB / 0.6632 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-05/0.6697, allocations: 44 kB / 0.6632 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.6709, allocations: 0.6477 MB / 0.6639 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.6709, allocations: 0 / 0.6639 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.643e-05/0.671, allocations: 24 kB / 0.6639 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.671, allocations: 12 kB / 0.6639 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00097/0.672, allocations: 0.4957 MB / 0.6644 GB, free: 15.18 MB / 0.4981 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.003122/0.6751, allocations: 2.641 MB / 0.667 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.6759, allocations: 322.6 kB / 0.6673 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.6761, allocations: 168.8 kB / 0.6674 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004166/0.6766, allocations: 433.5 kB / 0.6679 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.6766, allocations: 46.5 kB / 0.6679 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=35): time 1.893e-06/0.6766, allocations: 0 / 0.6679 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35): time 0.001657/0.6783, allocations: 0.721 MB / 0.6686 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.6784, allocations: 162.1 kB / 0.6688 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006311/0.679, allocations: 0.5223 MB / 0.6693 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.643e-05/0.6791, allocations: 33.7 kB / 0.6693 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/0.6793, allocations: 295.7 kB / 0.6696 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.6795, allocations: 126.2 kB / 0.6697 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.987e-05/0.6796, allocations: 41.7 kB / 0.6697 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6797, allocations: 366.8 kB / 0.6701 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.68, allocations: 145 kB / 0.6702 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.6804, allocations: 330.9 kB / 0.6705 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.6811, allocations: 478.8 kB / 0.671 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.6812, allocations: 3.938 kB / 0.671 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00104/0.6822, allocations: 0.5828 MB / 0.6716 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.6822, allocations: 14.28 kB / 0.6716 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6823, allocations: 4 kB / 0.6716 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.6839, allocations: 289.2 kB / 0.6719 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.6843, allocations: 119.8 kB / 0.672 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004648/0.6848, allocations: 0.5923 MB / 0.6726 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00046/0.6852, allocations: 63.36 kB / 0.6726 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.414e-05/0.6853, allocations: 55.98 kB / 0.6727 GB, free: 6.117 MB / 0.4981 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 (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.0002904/0.6856, allocations: 189.7 kB / 0.6729 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.6858, allocations: 71.23 kB / 0.6729 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/0.6878, allocations: 1.111 MB / 0.674 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.6879, allocations: 0 / 0.674 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.6879, allocations: 4 kB / 0.674 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.6879, allocations: 0 / 0.674 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.6894, allocations: 1.012 MB / 0.675 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.6894, allocations: 192 / 0.675 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.6896, allocations: 55.91 kB / 0.6751 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003342/0.693, allocations: 0.5353 MB / 0.6756 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.693, allocations: 15.98 kB / 0.6756 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004029/0.6934, allocations: 0.5952 MB / 0.6762 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6934, allocations: 4.062 kB / 0.6762 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007722/0.6942, allocations: 0.5051 MB / 0.6767 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.6945, allocations: 168.2 kB / 0.6768 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.6946, allocations: 8 kB / 0.6768 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.695, allocations: 27.92 kB / 0.6769 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.6951, allocations: 31.91 kB / 0.6769 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.6951, allocations: 19.98 kB / 0.6769 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005665/0.6957, allocations: 447 kB / 0.6773 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6957, allocations: 0 / 0.6773 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009236/0.6966, allocations: 295.8 kB / 0.6776 GB, free: 0.8438 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.001756/0.6984, allocations: 1.329 MB / 0.6789 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007714/0.6992, allocations: 377.2 kB / 0.6793 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6992, allocations: 0 / 0.6793 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.6995, allocations: 169.5 kB / 0.6794 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.7016, allocations: 378.7 kB / 0.6798 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006665/0.7083, allocations: 5.41 MB / 0.6851 GB, free: 8.922 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.7087, allocations: 0.8715 MB / 0.6859 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001296/0.71, allocations: 0.5749 MB / 0.6865 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004162/0.7104, allocations: 239.3 kB / 0.6867 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of SimCode: time 7.72e-07/0.7104, allocations: 0 / 0.6867 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.7496, allocations: 21.97 MB / 0.7082 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003642/0.75, allocations: 290.4 kB / 0.7085 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.478/3.228, allocations: 0 / 0.7085 GB, free: 1.156 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches