Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.001142/0.001142, allocations: 108 kB / 16.41 MB, free: 6.484 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.001205/0.001205, allocations: 188.1 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.289/1.289, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2092/0.2092, allocations: 43.53 MB / 314.1 MB, free: 460 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.001507/0.001507, allocations: 67.89 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.101, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002689/0.1038, allocations: 1.66 MB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003132/0.1041, allocations: 111.6 kB / 0.4891 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.734e-05/0.1042, allocations: 3.938 kB / 0.4891 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.619e-05/0.1043, allocations: 15.86 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.1044, allocations: 35.69 kB / 0.4892 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.1045, allocations: 31.97 kB / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.1047, allocations: 119.4 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1048, allocations: 41.08 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.923e-05/0.1049, allocations: 47.8 kB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.741e-05/0.105, allocations: 51.77 kB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.105, allocations: 12 kB / 0.4895 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.1051, allocations: 12 kB / 0.4895 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/0.1051, allocations: 23.92 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.437e-05/0.1052, allocations: 55.73 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.1053, allocations: 123.5 kB / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1054, allocations: 0 / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1054, allocations: 0 / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1054, allocations: 0 / 0.4897 GB, free: 9.996 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004745/0.1059, allocations: 410.7 kB / 0.49 GB, free: 9.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1059, allocations: 19.83 kB / 0.4901 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.106, allocations: 46.73 kB / 0.4901 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.106, allocations: 16.84 kB / 0.4901 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.1062, allocations: 192.2 kB / 0.4903 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.1062, allocations: 8.609 kB / 0.4903 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.1062, allocations: 16.33 kB / 0.4903 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.1065, allocations: 137.5 kB / 0.4905 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.1065, allocations: 7.875 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.1065, allocations: 8 kB / 0.4905 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1065, allocations: 4 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.1066, allocations: 59.95 kB / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.1073, allocations: 0.5373 MB / 0.4911 GB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.1075, allocations: 93.2 kB / 0.4912 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.199e-05/0.1075, allocations: 33.59 kB / 0.4912 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.1076, allocations: 4 kB / 0.4912 GB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.1076, allocations: 30.56 kB / 0.4912 GB, free: 8.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.1076, allocations: 0 / 0.4912 GB, free: 8.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005832/0.1082, allocations: 305.5 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.1082, allocations: 81.11 kB / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.791e-05/0.1083, allocations: 117.8 kB / 0.4917 GB, free: 7.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.1084, allocations: 25.7 kB / 0.4917 GB, free: 7.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.451e-05/0.1084, allocations: 127.7 kB / 0.4918 GB, free: 7.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.1085, allocations: 31.69 kB / 0.4919 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.1085, allocations: 33.7 kB / 0.4919 GB, free: 7.391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1086, allocations: 326.8 kB / 0.4922 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.99e-05/0.1087, allocations: 20 kB / 0.4922 GB, free: 7.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.024e-05/0.1088, allocations: 88.38 kB / 0.4923 GB, free: 6.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.1089, allocations: 124.5 kB / 0.4924 GB, free: 6.777 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1089, allocations: 0 / 0.4924 GB, free: 6.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000271/0.1092, allocations: 171 kB / 0.4926 GB, free: 6.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1092, allocations: 4 kB / 0.4926 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1092, allocations: 7.938 kB / 0.4926 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/0.1094, allocations: 41.95 kB / 0.4927 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.648e-05/0.1095, allocations: 31.86 kB / 0.4927 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.1114, allocations: 2.734 MB / 0.4954 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.031e-05/0.1115, allocations: 15.92 kB / 0.4954 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1116, allocations: 8 kB / 0.4954 GB, free: 3.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.1117, allocations: 125.8 kB / 0.4955 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.1118, allocations: 15.98 kB / 0.4955 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.1118, allocations: 11.91 kB / 0.4955 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1118, allocations: 0 / 0.4955 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.1118, allocations: 4 kB / 0.4955 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.1119, allocations: 0 / 0.4955 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.1121, allocations: 201.5 kB / 0.4957 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1122, allocations: 3.938 kB / 0.4957 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.356e-05/0.1123, allocations: 16 kB / 0.4957 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.1124, allocations: 37.64 kB / 0.4958 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1124, allocations: 4 kB / 0.4958 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/0.1143, allocations: 2.742 MB / 0.4985 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1144, allocations: 0 / 0.4985 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003478/0.1147, allocations: 304.4 kB / 0.4987 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.1148, allocations: 85.06 kB / 0.4988 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.1148, allocations: 4 kB / 0.4988 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.221e-05/0.1149, allocations: 4.062 kB / 0.4988 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.115, allocations: 8.031 kB / 0.4988 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.115, allocations: 4 kB / 0.4988 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.737e-05/0.115, allocations: 95.27 kB / 0.4989 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.115, allocations: 0 / 0.4989 GB, free: 15.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003646/0.1154, allocations: 35.94 kB / 0.499 GB, free: 15.39 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000535/0.116, allocations: 0.8344 MB / 0.4998 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.1164, allocations: 305.6 kB / 0.5001 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.1164, allocations: 0 / 0.5001 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.1166, allocations: 261.2 kB / 0.5003 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.1171, allocations: 32.48 kB / 0.5004 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.1191, allocations: 1.972 MB / 0.5023 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1195, allocations: 0.7123 MB / 0.503 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.524e-05/0.1195, allocations: 8.891 kB / 0.503 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.1196, allocations: 31.36 kB / 0.503 GB, free: 10.99 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1196, allocations: 3.938 kB / 0.503 GB, free: 10.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02272/0.1423, allocations: 2.997 MB / 0.506 GB, free: 7.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.026/9.169, allocations: 11.94 kB / 0.506 GB, free: 7.969 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches