Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001366/0.001366, allocations: 104.2 kB / 16.41 MB, free: 6.402 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.001312/0.001312, allocations: 192.7 kB / 17.34 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2168/0.2168, allocations: 43.54 MB / 314.1 MB, free: 440 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 65.47 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1091, allocations: 57.79 MB / 499.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.003194/0.1124, allocations: 1.799 MB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.1145, allocations: 1.38 MB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.1145, allocations: 0 / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002087/0.1148, allocations: 43.77 kB / 0.4906 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.115, allocations: 55.61 kB / 0.4906 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.1155, allocations: 243 kB / 0.4909 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.1156, allocations: 103.4 kB / 0.491 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.1157, allocations: 17.11 kB / 0.491 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.1158, allocations: 47.77 kB / 0.491 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.31e-05/0.1159, allocations: 47.78 kB / 0.4911 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.116, allocations: 4 kB / 0.4911 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007305/0.1167, allocations: 0.4951 MB / 0.4916 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.146e-05/0.1167, allocations: 19.86 kB / 0.4916 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.155e-05/0.1168, allocations: 43.72 kB / 0.4916 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.1173, allocations: 358.8 kB / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1173, allocations: 4 kB / 0.492 GB, free: 7.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1174, allocations: 4 kB / 0.492 GB, free: 7.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1174, allocations: 0 / 0.492 GB, free: 7.586 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.0005969/0.118, allocations: 442.5 kB / 0.4924 GB, free: 7.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.118, allocations: 12.03 kB / 0.4924 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.627e-05/0.1181, allocations: 46.73 kB / 0.4924 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.362e-05/0.1181, allocations: 8.891 kB / 0.4925 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.1182, allocations: 184.1 kB / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1183, allocations: 8.375 kB / 0.4926 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.1183, allocations: 19.94 kB / 0.4927 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.1186, allocations: 146.1 kB / 0.4928 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1186, allocations: 0 / 0.4928 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.1187, allocations: 0 / 0.4928 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.1187, allocations: 4 kB / 0.4928 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.119, allocations: 139.8 kB / 0.4929 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000868/0.1199, allocations: 0.5144 MB / 0.4934 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.1202, allocations: 90.66 kB / 0.4935 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.1203, allocations: 52.83 kB / 0.4936 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.1203, allocations: 8 kB / 0.4936 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.1204, allocations: 30.56 kB / 0.4936 GB, free: 5.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.1204, allocations: 0 / 0.4936 GB, free: 5.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004948/0.1209, allocations: 165.4 kB / 0.4938 GB, free: 5.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.1209, allocations: 51.41 kB / 0.4938 GB, free: 5.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.232e-05/0.121, allocations: 117.8 kB / 0.4939 GB, free: 5.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.1211, allocations: 29.7 kB / 0.494 GB, free: 5.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.1211, allocations: 119.8 kB / 0.4941 GB, free: 5.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.1212, allocations: 43.67 kB / 0.4941 GB, free: 5.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.1213, allocations: 33.67 kB / 0.4941 GB, free: 5.121 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1214, allocations: 322.8 kB / 0.4945 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1215, allocations: 35.97 kB / 0.4945 GB, free: 4.762 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.1217, allocations: 92.84 kB / 0.4946 GB, free: 4.656 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.122, allocations: 133.4 kB / 0.4947 GB, free: 4.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.122, allocations: 3.938 kB / 0.4947 GB, free: 4.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003507/0.1223, allocations: 157.5 kB / 0.4949 GB, free: 4.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1224, allocations: 4 kB / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1224, allocations: 0 / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1224, allocations: 4.156 kB / 0.4949 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.1226, allocations: 51.91 kB / 0.4949 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004109/0.123, allocations: 0.586 MB / 0.4955 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1232, allocations: 24.28 kB / 0.4955 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1232, allocations: 4 kB / 0.4955 GB, free: 3.648 MB / 382.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.0001063/0.1233, allocations: 133.7 kB / 0.4956 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.44e-05/0.1233, allocations: 11.94 kB / 0.4957 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004267/0.1238, allocations: 165.9 kB / 0.4958 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1238, allocations: 0 / 0.4958 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1238, allocations: 7.938 kB / 0.4958 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1238, allocations: 4 kB / 0.4958 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.1241, allocations: 213.5 kB / 0.496 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1241, allocations: 0 / 0.496 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.1243, allocations: 43.91 kB / 0.4961 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/0.1243, allocations: 7.938 kB / 0.4961 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1244, allocations: 4 kB / 0.4961 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003406/0.1247, allocations: 0.5898 MB / 0.4967 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1247, allocations: 0 / 0.4967 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.1252, allocations: 295.4 kB / 0.4969 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.809e-05/0.1253, allocations: 101 kB / 0.497 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.1253, allocations: 0 / 0.497 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.1255, allocations: 16.14 kB / 0.497 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.1255, allocations: 11.98 kB / 0.4971 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-06/0.1255, allocations: 0 / 0.4971 GB, free: 1.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.661e-05/0.1256, allocations: 91.27 kB / 0.4971 GB, free: 1.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1256, allocations: 0 / 0.4971 GB, free: 1.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.1261, allocations: 75.69 kB / 0.4972 GB, free: 1.77 MB / 382.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.001463/0.1275, allocations: 0.8995 MB / 0.4981 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.1282, allocations: 119.9 kB / 0.4982 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1282, allocations: 0 / 0.4982 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000312/0.1285, allocations: 75.89 kB / 0.4983 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.129, allocations: 12.25 kB / 0.4983 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.1322, allocations: 1.724 MB / 0.5 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.1326, allocations: 0.708 MB / 0.5007 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.1328, allocations: 20.95 kB / 0.5007 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.1329, allocations: 39.42 kB / 0.5007 GB, free: 14.01 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1329, allocations: 0 / 0.5007 GB, free: 14.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03039/0.1633, allocations: 3.788 MB / 0.5044 GB, free: 10.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.6, allocations: 8.5 kB / 0.5044 GB, free: 10.23 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Orifice/dp_suddenChange_DPMFLOW/dp_suddenChange_DPMFLOW.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches