Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.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.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",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.002042/0.002042, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.002476/0.002477, allocations: 183 kB / 18.72 MB, free: 4.332 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.469/1.469, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2298/0.2298, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 63.89 kB / 470.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3888, allocations: 60.82 MB / 0.5185 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.002577/0.3914, allocations: 1.798 MB / 0.5202 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3933, allocations: 1.337 MB / 0.5215 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.725e-05/0.3934, allocations: 1.094 kB / 0.5215 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.3936, allocations: 41.02 kB / 0.5216 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.3938, allocations: 53.16 kB / 0.5216 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.3944, allocations: 239.2 kB / 0.5218 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.3945, allocations: 106.1 kB / 0.5219 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.3946, allocations: 11.14 kB / 0.5219 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.3947, allocations: 48.48 kB / 0.522 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.119e-05/0.3948, allocations: 59.33 kB / 0.522 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.3948, allocations: 3.5 kB / 0.5221 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007192/0.3955, allocations: 0.489 MB / 0.5225 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.3956, allocations: 18.08 kB / 0.5225 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.681e-05/0.3956, allocations: 45.64 kB / 0.5226 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005137/0.3961, allocations: 353.9 kB / 0.5229 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3962, allocations: 0.75 kB / 0.5229 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3962, allocations: 1.562 kB / 0.5229 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.3962, allocations: 0 / 0.5229 GB, free: 0.5391 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005682/0.3968, allocations: 447.2 kB / 0.5234 GB, free: 116 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3968, allocations: 9.875 kB / 0.5234 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.266e-05/0.3969, allocations: 45.55 kB / 0.5234 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.3969, allocations: 15.33 kB / 0.5234 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.3971, allocations: 177.1 kB / 0.5236 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3971, allocations: 9.406 kB / 0.5236 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.3972, allocations: 19.72 kB / 0.5236 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.3975, allocations: 139.6 kB / 0.5238 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.3975, allocations: 0 / 0.5238 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.3975, allocations: 5.375 kB / 0.5238 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3975, allocations: 2.5 kB / 0.5238 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003199/0.3979, allocations: 136.9 kB / 0.5239 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009306/0.3988, allocations: 0.5207 MB / 0.5244 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.3991, allocations: 97.91 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.3993, allocations: 53.52 kB / 0.5245 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.4e-05/0.3993, allocations: 10.56 kB / 0.5246 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.3993, allocations: 39.66 kB / 0.5246 GB, free: 15.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3993, allocations: 0 / 0.5246 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005123/0.3999, allocations: 152.8 kB / 0.5247 GB, free: 15.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.3999, allocations: 52.31 kB / 0.5248 GB, free: 15.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.4, allocations: 119.9 kB / 0.5249 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.4001, allocations: 26.36 kB / 0.5249 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.148e-05/0.4001, allocations: 116.6 kB / 0.525 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.4002, allocations: 48.17 kB / 0.5251 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/0.4003, allocations: 33.05 kB / 0.5251 GB, free: 14.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4004, allocations: 322.6 kB / 0.5254 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.4006, allocations: 37.2 kB / 0.5255 GB, free: 14.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.4008, allocations: 85.72 kB / 0.5255 GB, free: 14.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.4011, allocations: 119.8 kB / 0.5257 GB, free: 14.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4011, allocations: 4 kB / 0.5257 GB, free: 14.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003898/0.4015, allocations: 160.3 kB / 0.5258 GB, free: 14.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.4016, allocations: 9.062 kB / 0.5258 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-06/0.4016, allocations: 2.094 kB / 0.5258 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4016, allocations: 6.062 kB / 0.5258 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.4018, allocations: 49.72 kB / 0.5259 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004455/0.4023, allocations: 0.5899 MB / 0.5265 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.4024, allocations: 20.8 kB / 0.5265 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.4024, allocations: 7.469 kB / 0.5265 GB, free: 13.55 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4026, allocations: 118.8 kB / 0.5266 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.4026, allocations: 8.047 kB / 0.5266 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004754/0.4031, allocations: 173.7 kB / 0.5268 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4031, allocations: 2.562 kB / 0.5268 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.4031, allocations: 4.453 kB / 0.5268 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.4031, allocations: 0.7969 kB / 0.5268 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.4035, allocations: 222.1 kB / 0.527 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4035, allocations: 0 / 0.527 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.4037, allocations: 45.73 kB / 0.527 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.4037, allocations: 1.094 kB / 0.527 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.4037, allocations: 7.328 kB / 0.527 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003715/0.4041, allocations: 0.584 MB / 0.5276 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4041, allocations: 0 / 0.5276 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.4047, allocations: 291.5 kB / 0.5279 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.532e-05/0.4048, allocations: 107.2 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.4048, allocations: 1.375 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.4049, allocations: 6.891 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.405, allocations: 17.31 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.405, allocations: 7.969 kB / 0.528 GB, free: 12.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.594e-05/0.4051, allocations: 90.16 kB / 0.5281 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4051, allocations: 0 / 0.5281 GB, free: 12.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004109/0.4055, allocations: 78.25 kB / 0.5282 GB, free: 12.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (frac_A1toA2) * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/0.4065, allocations: 0.8911 MB / 0.529 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.407, allocations: 137 kB / 0.5292 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.407, allocations: 0 / 0.5292 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.4072, allocations: 75.89 kB / 0.5293 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.4075, allocations: 8.891 kB / 0.5293 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.4099, allocations: 1.733 MB / 0.531 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.4103, allocations: 0.7017 MB / 0.5316 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.108e-05/0.4104, allocations: 25.84 kB / 0.5317 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.567e-05/0.4105, allocations: 42.67 kB / 0.5317 GB, free: 8.992 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4105, allocations: 0 / 0.5317 GB, free: 8.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02933/0.4398, allocations: 3.791 MB / 0.5354 GB, free: 7.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.3, allocations: 20.06 kB / 0.5354 GB, free: 7.07 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Orifice/dp_suddenChange_DPMFLOW/dp_suddenChange_DPMFLOW.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches