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.001229/0.001229, allocations: 113.2 kB / 17.78 MB, free: 5.277 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.001247/0.001247, allocations: 184.2 kB / 18.72 MB, free: 4.352 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.466/1.466, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.24/0.24, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 71.88 kB / 470.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3458, allocations: 60.82 MB / 0.5185 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.002663/0.3485, allocations: 1.799 MB / 0.5202 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.3504, allocations: 1.337 MB / 0.5215 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.748e-05/0.3505, allocations: 1 kB / 0.5215 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000234/0.3507, allocations: 39.84 kB / 0.5216 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.3509, allocations: 53.84 kB / 0.5216 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005936/0.3515, allocations: 243.4 kB / 0.5218 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.3517, allocations: 105.8 kB / 0.5219 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.509e-05/0.3518, allocations: 12.53 kB / 0.522 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.3519, allocations: 51.53 kB / 0.522 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.165e-05/0.352, allocations: 46.67 kB / 0.522 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.352, allocations: 4.219 kB / 0.522 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008046/0.3528, allocations: 0.4997 MB / 0.5225 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.512e-05/0.3529, allocations: 18.62 kB / 0.5226 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.349e-05/0.3529, allocations: 45.86 kB / 0.5226 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.3535, allocations: 354.1 kB / 0.5229 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3535, allocations: 0 / 0.5229 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3535, allocations: 0.7031 kB / 0.5229 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.3535, allocations: 1.156 kB / 0.5229 GB, free: 0.5547 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.0005222/0.3541, allocations: 448.6 kB / 0.5234 GB, free: 132 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3541, allocations: 7.781 kB / 0.5234 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.275e-05/0.3542, allocations: 45.42 kB / 0.5234 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.3542, allocations: 15.56 kB / 0.5234 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.3544, allocations: 179.4 kB / 0.5236 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.3544, allocations: 8.156 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.3545, allocations: 14.81 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.3549, allocations: 138.9 kB / 0.5238 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3549, allocations: 1.219 kB / 0.5238 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.3549, allocations: 5.094 kB / 0.5238 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.3549, allocations: 2.219 kB / 0.5238 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.3552, allocations: 137.5 kB / 0.5239 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009923/0.3562, allocations: 0.5205 MB / 0.5244 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.3566, allocations: 102 kB / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.3567, allocations: 49.12 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3567, allocations: 1.953 kB / 0.5246 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3568, allocations: 40.23 kB / 0.5246 GB, free: 15.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.3568, allocations: 1.094 kB / 0.5246 GB, free: 15.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004939/0.3573, allocations: 155.3 kB / 0.5247 GB, free: 15.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.3573, allocations: 54.59 kB / 0.5248 GB, free: 15.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.3575, allocations: 122.5 kB / 0.5249 GB, free: 14.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3575, allocations: 29.64 kB / 0.5249 GB, free: 14.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-05/0.3576, allocations: 118.7 kB / 0.525 GB, free: 14.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.3576, allocations: 43.14 kB / 0.5251 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.096e-05/0.3577, allocations: 35.73 kB / 0.5251 GB, free: 14.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3579, allocations: 320.4 kB / 0.5254 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.358, allocations: 36.86 kB / 0.5255 GB, free: 14.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.3582, allocations: 85.38 kB / 0.5255 GB, free: 14.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.3585, allocations: 127.7 kB / 0.5257 GB, free: 14.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3585, allocations: 0 / 0.5257 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003687/0.3589, allocations: 157.2 kB / 0.5258 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3589, allocations: 6.562 kB / 0.5258 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3589, allocations: 4.594 kB / 0.5258 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3589, allocations: 3.844 kB / 0.5258 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.3592, allocations: 48.64 kB / 0.5259 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004278/0.3596, allocations: 0.5897 MB / 0.5265 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.3597, allocations: 15.97 kB / 0.5265 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.3598, allocations: 10.2 kB / 0.5265 GB, free: 13.57 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.0001137/0.3599, allocations: 119.9 kB / 0.5266 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.3599, allocations: 10.8 kB / 0.5266 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000455/0.3604, allocations: 172 kB / 0.5268 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3604, allocations: 1.891 kB / 0.5268 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3604, allocations: 5.312 kB / 0.5268 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3604, allocations: 4.609 kB / 0.5268 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.3607, allocations: 218.3 kB / 0.527 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3607, allocations: 0 / 0.527 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.3609, allocations: 46.25 kB / 0.527 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.361, allocations: 1.375 kB / 0.527 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.361, allocations: 2.031 kB / 0.527 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003862/0.3614, allocations: 0.592 MB / 0.5276 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3614, allocations: 4.891 kB / 0.5276 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.3619, allocations: 291.6 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.16e-05/0.362, allocations: 93.62 kB / 0.528 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.435e-05/0.3621, allocations: 5.375 kB / 0.528 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3622, allocations: 6.984 kB / 0.528 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.3623, allocations: 21.41 kB / 0.528 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.3623, allocations: 3.5 kB / 0.528 GB, free: 12.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.13e-05/0.3623, allocations: 90.91 kB / 0.5281 GB, free: 12.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3624, allocations: 0 / 0.5281 GB, free: 12.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004637/0.3628, allocations: 77.78 kB / 0.5282 GB, free: 12.12 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.001292/0.3641, allocations: 0.896 MB / 0.5291 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004729/0.3646, allocations: 135.3 kB / 0.5292 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3646, allocations: 0 / 0.5292 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000218/0.3648, allocations: 77.8 kB / 0.5293 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.3652, allocations: 7.734 kB / 0.5293 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.3679, allocations: 1.726 MB / 0.531 GB, free: 9.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.3684, allocations: 0.7068 MB / 0.5316 GB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.074e-05/0.3685, allocations: 16.33 kB / 0.5317 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.231e-05/0.3686, allocations: 35.39 kB / 0.5317 GB, free: 9.023 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3686, allocations: 0 / 0.5317 GB, free: 9.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.3997, allocations: 3.807 MB / 0.5354 GB, free: 7.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.1, allocations: 13.84 kB / 0.5354 GB, free: 7.094 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.csv","/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