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.001112/0.001111, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 78.19 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 62.44 MB / 480.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.4237/0.532, allocations: 184.1 MB / 0.6487 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00741/0.5394, allocations: 4.608 MB / 0.6532 GB, free: 6.324 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009378/0.5405, allocations: 15.88 kB / 0.6532 GB, free: 6.309 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.5419, allocations: 341.7 kB / 0.6535 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005104/0.547, allocations: 1.782 MB / 0.6552 GB, free: 4.188 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002321/0.5493, allocations: 0.9428 MB / 0.6562 GB, free: 3.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002074/0.5514, allocations: 1.703 MB / 0.6578 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007315/0.5522, allocations: 446.2 kB / 0.6582 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.5538, allocations: 0.841 MB / 0.6591 GB, free: 272 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007981/0.5546, allocations: 0.4981 MB / 0.6595 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.5547, allocations: 52 kB / 0.6596 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.5572, allocations: 1.256 MB / 0.6608 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.5574, allocations: 175.4 kB / 0.661 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005176/0.5579, allocations: 374.4 kB / 0.6613 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002531/0.5605, allocations: 1.64 MB / 0.663 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.5605, allocations: 0 / 0.663 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5605, allocations: 0 / 0.663 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.973e-05/0.5605, allocations: 0 / 0.663 GB, free: 12.27 MB / 0.4981 GB 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.002196/0.5627, allocations: 1.107 MB / 0.664 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.5628, allocations: 8.031 kB / 0.664 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.5629, allocations: 94.52 kB / 0.6641 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/0.5642, allocations: 160 kB / 0.6643 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007479/0.565, allocations: 0.4885 MB / 0.6648 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.565, allocations: 33 kB / 0.6648 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/0.5651, allocations: 44 kB / 0.6648 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.5662, allocations: 0.6501 MB / 0.6655 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5663, allocations: 0 / 0.6655 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.95e-05/0.5663, allocations: 24 kB / 0.6655 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.5664, allocations: 12 kB / 0.6655 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000923/0.5673, allocations: 0.4956 MB / 0.666 GB, free: 9.016 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.002917/0.5702, allocations: 2.66 MB / 0.6686 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.5709, allocations: 319.8 kB / 0.6689 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.5712, allocations: 166.7 kB / 0.669 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004112/0.5716, allocations: 441.5 kB / 0.6695 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5717, allocations: 38.56 kB / 0.6695 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/0.5717, allocations: 0 / 0.6695 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35): time 0.001602/0.5733, allocations: 0.7093 MB / 0.6702 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.5734, allocations: 166 kB / 0.6704 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005989/0.574, allocations: 0.5146 MB / 0.6709 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.574, allocations: 37.64 kB / 0.6709 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.5742, allocations: 307.5 kB / 0.6712 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.5744, allocations: 114.2 kB / 0.6713 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.5745, allocations: 130.1 kB / 0.6714 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001691/0.5747, allocations: 358.8 kB / 0.6718 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.575, allocations: 149 kB / 0.6719 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.5754, allocations: 315 kB / 0.6722 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007017/0.5762, allocations: 474.7 kB / 0.6727 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5762, allocations: 4 kB / 0.6727 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001001/0.5772, allocations: 0.5635 MB / 0.6732 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.5772, allocations: 11.94 kB / 0.6732 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.5772, allocations: 4 kB / 0.6732 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.5788, allocations: 245.1 kB / 0.6735 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.5792, allocations: 123.8 kB / 0.6736 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004614/0.5797, allocations: 0.5874 MB / 0.6742 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003711/0.5801, allocations: 51.44 kB / 0.6742 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/0.5802, allocations: 55.98 kB / 0.6743 GB, free: 15.96 MB / 0.5137 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.0002691/0.5805, allocations: 197.5 kB / 0.6744 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.5807, allocations: 63.41 kB / 0.6745 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.5827, allocations: 1.107 MB / 0.6756 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5827, allocations: 4 kB / 0.6756 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5827, allocations: 0 / 0.6756 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.5827, allocations: 7.984 kB / 0.6756 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.5842, allocations: 1.008 MB / 0.6766 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5842, allocations: 0 / 0.6766 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.5844, allocations: 55.91 kB / 0.6766 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003225/0.5876, allocations: 444.3 kB / 0.6771 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.5877, allocations: 11.98 kB / 0.6771 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004667/0.5882, allocations: 0.5953 MB / 0.6777 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5882, allocations: 0 / 0.6777 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009342/0.5891, allocations: 0.5045 MB / 0.6781 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.5894, allocations: 144.3 kB / 0.6783 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.5896, allocations: 16 kB / 0.6783 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.59, allocations: 19.98 kB / 0.6783 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.15e-05/0.5901, allocations: 31.84 kB / 0.6783 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.5902, allocations: 15.98 kB / 0.6784 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006786/0.5909, allocations: 455 kB / 0.6788 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5909, allocations: 0 / 0.6788 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001035/0.5919, allocations: 287.8 kB / 0.6791 GB, free: 10.83 MB / 0.5137 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.002072/0.594, allocations: 1.32 MB / 0.6804 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009084/0.5949, allocations: 384 kB / 0.6807 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.5949, allocations: 4 kB / 0.6807 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.5953, allocations: 161 kB / 0.6809 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.5974, allocations: 412.6 kB / 0.6813 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/0.6047, allocations: 5.201 MB / 0.6864 GB, free: 3.098 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.6052, allocations: 0.8676 MB / 0.6872 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001338/0.6065, allocations: 0.5676 MB / 0.6878 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004416/0.607, allocations: 246.8 kB / 0.688 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.607, allocations: 0 / 0.688 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2251/0.8321, allocations: 22.87 MB / 0.7103 GB, free: 199.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/12.1, allocations: 12.61 kB / 0.7103 GB, free: 199.2 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