Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.001274/0.001274, allocations: 106.9 kB / 16.41 MB, free: 6.512 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.001259/0.001259, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.468/1.468, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2247/0.2247, allocations: 43.51 MB / 314.1 MB, free: 452 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.001601/0.001601, allocations: 73.61 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1086, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.0042/0.1128, allocations: 2.837 MB / 0.4902 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.1145, allocations: 0.737 MB / 0.4909 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004293/0.115, allocations: 11.94 kB / 0.4909 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.1154, allocations: 51.44 kB / 0.4909 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.1159, allocations: 138.8 kB / 0.4911 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.1163, allocations: 87.89 kB / 0.4912 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000653/0.117, allocations: 430 kB / 0.4916 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.1173, allocations: 145.5 kB / 0.4917 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003246/0.1176, allocations: 171.4 kB / 0.4919 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.1179, allocations: 179.2 kB / 0.492 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.118, allocations: 32 kB / 0.4921 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.328e-05/0.1181, allocations: 32 kB / 0.4921 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.057e-05/0.1182, allocations: 75.7 kB / 0.4922 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.1184, allocations: 203 kB / 0.4924 GB, free: 7.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005582/0.1189, allocations: 430.2 kB / 0.4928 GB, free: 6.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.119, allocations: 0 / 0.4928 GB, free: 6.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.119, allocations: 4 kB / 0.4928 GB, free: 6.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.119, allocations: 0 / 0.4928 GB, free: 6.734 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001229/0.1202, allocations: 0.6547 MB / 0.4934 GB, free: 6.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.1203, allocations: 11.89 kB / 0.4934 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.535e-05/0.1204, allocations: 74.72 kB / 0.4935 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.408e-05/0.1205, allocations: 44.7 kB / 0.4935 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.1209, allocations: 280.5 kB / 0.4938 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.121, allocations: 29.38 kB / 0.4938 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.844e-05/0.1211, allocations: 40.33 kB / 0.4939 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.1217, allocations: 398.2 kB / 0.4943 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.1218, allocations: 11.95 kB / 0.4943 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1218, allocations: 16 kB / 0.4943 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1218, allocations: 8 kB / 0.4943 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004366/0.1223, allocations: 223.7 kB / 0.4945 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.1246, allocations: 1.719 MB / 0.4962 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004563/0.1251, allocations: 274.2 kB / 0.4965 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1253, allocations: 102.1 kB / 0.4965 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1253, allocations: 4 kB / 0.4966 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.1254, allocations: 42.5 kB / 0.4966 GB, free: 2.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 3.787e-06/0.1254, allocations: 4 kB / 0.4966 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007108/0.1261, allocations: 265.1 kB / 0.4969 GB, free: 2.234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1262, allocations: 213.6 kB / 0.4971 GB, free: 1.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1265, allocations: 274.9 kB / 0.4973 GB, free: 1.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1266, allocations: 30.08 kB / 0.4973 GB, free: 1.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.1268, allocations: 252.1 kB / 0.4976 GB, free: 1.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.95e-05/0.1269, allocations: 119 kB / 0.4977 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.127, allocations: 98.3 kB / 0.4978 GB, free: 1.191 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1271, allocations: 350.7 kB / 0.4981 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.1274, allocations: 97.25 kB / 0.4982 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.1278, allocations: 424.9 kB / 0.4986 GB, free: 176 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007035/0.1285, allocations: 0.5707 MB / 0.4992 GB, free: 15.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.1285, allocations: 0 / 0.4992 GB, free: 15.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009014/0.1294, allocations: 0.5327 MB / 0.4997 GB, free: 14.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.1294, allocations: 12.19 kB / 0.4997 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.1295, allocations: 16 kB / 0.4997 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.1295, allocations: 12 kB / 0.4997 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.1299, allocations: 152.2 kB / 0.4999 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.22e-05/0.13, allocations: 19.94 kB / 0.4999 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.1303, allocations: 67.56 kB / 0.5 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.1304, allocations: 32 kB / 0.5 GB, free: 14.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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 0.0002112/0.1306, allocations: 185.4 kB / 0.5002 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.1307, allocations: 39.81 kB / 0.5002 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.571e-05/0.1308, allocations: 33.78 kB / 0.5002 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1308, allocations: 4 kB / 0.5003 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1309, allocations: 4 kB / 0.5003 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1309, allocations: 3.984 kB / 0.5003 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.1322, allocations: 0.6474 MB / 0.5009 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.1322, allocations: 8.062 kB / 0.5009 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.1327, allocations: 87.89 kB / 0.501 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.1327, allocations: 4 kB / 0.501 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.1327, allocations: 11.98 kB / 0.501 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.1328, allocations: 7.938 kB / 0.501 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1328, allocations: 4 kB / 0.501 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008407/0.1336, allocations: 0.8298 MB / 0.5018 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1337, allocations: 108.9 kB / 0.5019 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.144e-05/0.1338, allocations: 19.94 kB / 0.5019 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.1342, allocations: 11.92 kB / 0.502 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.1343, allocations: 27.84 kB / 0.502 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.1343, allocations: 12 kB / 0.502 GB, free: 12.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001946/0.1345, allocations: 186 kB / 0.5022 GB, free: 12.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1345, allocations: 0 / 0.5022 GB, free: 12.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008583/0.1354, allocations: 99.89 kB / 0.5023 GB, free: 12.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.001293/0.1367, allocations: 1.379 MB / 0.5036 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.1374, allocations: 293.4 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1374, allocations: 0.875 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1376, allocations: 88.69 kB / 0.504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1386, allocations: 75.7 kB / 0.504 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006189/0.1448, allocations: 4.939 MB / 0.5089 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.1453, allocations: 0.7988 MB / 0.5097 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.1455, allocations: 43.27 kB / 0.5097 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.1457, allocations: 111.4 kB / 0.5098 GB, free: 3.949 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1457, allocations: 0 / 0.5098 GB, free: 3.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03053/0.1762, allocations: 6.599 MB / 0.5162 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/8.719, allocations: 0 / 0.5162 GB, free: 13.33 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_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_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches