Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.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.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep",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.001308/0.001309, allocations: 110.2 kB / 16.41 MB, free: 6.496 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.001198/0.001198, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.38/1.38, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2072/0.2072, allocations: 43.53 MB / 314.1 MB, free: 456 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.002052/0.002052, allocations: 67.89 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.1013, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001768/0.1031, allocations: 0.5338 MB / 499.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002781/0.1034, allocations: 68.31 kB / 499.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.888e-05/0.1035, allocations: 4 kB / 499.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.108e-05/0.1035, allocations: 3.938 kB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.1037, allocations: 15.86 kB / 499.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.98e-05/0.1037, allocations: 4 kB / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.245e-05/0.1038, allocations: 4 kB / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.165e-05/0.1038, allocations: 4 kB / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.689e-05/0.1039, allocations: 0 / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.692e-05/0.1039, allocations: 7.969 kB / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1039, allocations: 4 kB / 499.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.104, allocations: 19.98 kB / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.1041, allocations: 7.938 kB / 499.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.843e-05/0.1041, allocations: 8 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.21e-05/0.1042, allocations: 11.97 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1042, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1042, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1042, allocations: 7.938 kB / 499.8 MB, free: 11.59 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003532/0.1046, allocations: 334.8 kB / 0.4884 GB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1046, allocations: 11.89 kB / 0.4884 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.888e-05/0.1046, allocations: 30.75 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.179e-05/0.1047, allocations: 8.938 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1048, allocations: 164.3 kB / 0.4886 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1048, allocations: 4.312 kB / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1048, allocations: 384 / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.686e-05/0.1049, allocations: 42.23 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.105, allocations: 7.938 kB / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-06/0.105, allocations: 0 / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.105, allocations: 0 / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.372e-05/0.105, allocations: 7.938 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.1052, allocations: 165.7 kB / 0.4889 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.1054, allocations: 34.61 kB / 0.4889 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.518e-05/0.1054, allocations: 8.859 kB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003574/0.1058, allocations: 121.1 kB / 0.489 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.1058, allocations: 34.56 kB / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1058, allocations: 0 / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.001201/0.107, allocations: 185.3 kB / 0.4892 GB, free: 10.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.1071, allocations: 51.41 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.112e-05/0.1072, allocations: 93.86 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1072, allocations: 25.7 kB / 0.4894 GB, free: 10.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.1072, allocations: 80.14 kB / 0.4895 GB, free: 9.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.1073, allocations: 23.83 kB / 0.4895 GB, free: 9.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.1073, allocations: 13.72 kB / 0.4895 GB, free: 9.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1075, allocations: 314.8 kB / 0.4898 GB, free: 9.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-05/0.1076, allocations: 23.91 kB / 0.4898 GB, free: 9.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.315e-05/0.1077, allocations: 24.11 kB / 0.4898 GB, free: 9.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.1078, allocations: 44.83 kB / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.1078, allocations: 0 / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002118/0.108, allocations: 81.56 kB / 0.49 GB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1081, allocations: 4 kB / 0.49 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1081, allocations: 7.984 kB / 0.49 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1081, allocations: 0 / 0.49 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.1082, allocations: 19.92 kB / 0.49 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1082, allocations: 3.938 kB / 0.49 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.966e-05/0.1083, allocations: 4 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.1083, allocations: 4 kB / 0.49 GB, free: 9.398 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.277e-05/0.1084, allocations: 113.8 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.1084, allocations: 7.938 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002606/0.1087, allocations: 89.47 kB / 0.4902 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1087, allocations: 0 / 0.4902 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1087, allocations: 4.062 kB / 0.4902 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1088, allocations: 3.984 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.1095, allocations: 355.3 kB / 0.4906 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1095, allocations: 0 / 0.4906 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.1096, allocations: 11.98 kB / 0.4906 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1096, allocations: 7.938 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.1096, allocations: 0 / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1096, allocations: 3.938 kB / 0.4906 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1096, allocations: 0 / 0.4906 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.1099, allocations: 186.6 kB / 0.4908 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.1099, allocations: 81.39 kB / 0.4908 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.11, allocations: 3.984 kB / 0.4908 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.724e-05/0.1101, allocations: 8 kB / 0.4908 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.1101, allocations: 11.97 kB / 0.4909 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.1101, allocations: 0 / 0.4909 GB, free: 8.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.885e-05/0.1101, allocations: 79.28 kB / 0.4909 GB, free: 8.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1102, allocations: 4.094 kB / 0.4909 GB, free: 8.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.1104, allocations: 8 kB / 0.4909 GB, free: 8.324 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005789/0.111, allocations: 0.7054 MB / 0.4916 GB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.1112, allocations: 55.89 kB / 0.4917 GB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1112, allocations: 0 / 0.4917 GB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.419e-05/0.1113, allocations: 23.98 kB / 0.4917 GB, free: 7.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.1115, allocations: 6.656 kB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005375/0.1121, allocations: 171.2 kB / 0.4919 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1124, allocations: 0.6807 MB / 0.4925 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.635e-05/0.1124, allocations: 7.875 kB / 0.4925 GB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.1125, allocations: 15.44 kB / 0.4926 GB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1125, allocations: 4 kB / 0.4926 GB, free: 6.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.1341, allocations: 1.466 MB / 0.494 GB, free: 5.086 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/7.848, allocations: 11.25 kB / 0.494 GB, free: 5.078 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.csv --start-time 0 --stop-time 1.3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00052 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches