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.001519/0.00152, allocations: 100.6 kB / 16.27 MB, free: 5.93 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.001583/0.001583, allocations: 189.5 kB / 17.2 MB, free: 5.574 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.541/1.541, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2262/0.2262, allocations: 43.51 MB / 313.9 MB, free: 0.5312 MB / 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.001711/0.001712, allocations: 68.58 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1095, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003826/0.1134, allocations: 2.83 MB / 443.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1147, allocations: 0.7332 MB / 444.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.115, allocations: 11.94 kB / 444.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.1153, allocations: 55.38 kB / 444.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.1156, allocations: 130.9 kB / 444.4 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.1159, allocations: 87.88 kB / 444.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.1164, allocations: 429.9 kB / 444.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.1167, allocations: 145.7 kB / 445 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1169, allocations: 163.4 kB / 445.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.1172, allocations: 179.1 kB / 445.4 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.459e-05/0.1173, allocations: 35.94 kB / 445.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.238e-05/0.1174, allocations: 36 kB / 445.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.1175, allocations: 79.73 kB / 445.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.1177, allocations: 199 kB / 445.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003252/0.118, allocations: 414.6 kB / 446.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.118, allocations: 4 kB / 446.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.118, allocations: 3.938 kB / 446.1 MB, free: 1.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.118, allocations: 0 / 446.1 MB, free: 1.293 MB / 318.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.0008809/0.1189, allocations: 0.6474 MB / 446.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.119, allocations: 11.89 kB / 446.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.502e-05/0.119, allocations: 74.7 kB / 446.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.1191, allocations: 40.47 kB / 446.9 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.1194, allocations: 284.3 kB / 447.2 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1194, allocations: 29.38 kB / 447.2 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.1194, allocations: 36.38 kB / 447.2 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006191/0.1201, allocations: 402.2 kB / 447.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.35e-05/0.1201, allocations: 11.91 kB / 447.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.1201, allocations: 16 kB / 447.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1202, allocations: 8 kB / 447.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1206, allocations: 227.7 kB / 447.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.1229, allocations: 1.707 MB / 449.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.1234, allocations: 266.3 kB / 449.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.1235, allocations: 94.08 kB / 449.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.1236, allocations: 8.234 kB / 449.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.1236, allocations: 54.48 kB / 450 MB, free: 13.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.874e-06/0.1236, allocations: 0 / 450 MB, free: 13.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.00068/0.1243, allocations: 253.1 kB / 450.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.1244, allocations: 213.6 kB / 450.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.1247, allocations: 279.1 kB / 450.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.1247, allocations: 33.7 kB / 450.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1249, allocations: 239.3 kB / 451 MB, free: 12.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.863e-05/0.125, allocations: 122.3 kB / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.1251, allocations: 94.27 kB / 451.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1253, allocations: 346.7 kB / 451.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1255, allocations: 101.8 kB / 451.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.1259, allocations: 428.8 kB / 452.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006892/0.1266, allocations: 0.5667 MB / 452.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.1266, allocations: 0 / 452.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000896/0.1275, allocations: 0.5289 MB / 453.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1275, allocations: 17.25 kB / 453.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.1276, allocations: 15.94 kB / 453.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.1276, allocations: 15.94 kB / 453.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004178/0.128, allocations: 151.7 kB / 453.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/0.1281, allocations: 19.94 kB / 453.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.1284, allocations: 67.36 kB / 453.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.1284, allocations: 32 kB / 453.5 MB, free: 9.188 MB / 334.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.0002732/0.1287, allocations: 189.4 kB / 453.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.1288, allocations: 31.62 kB / 453.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.505e-05/0.1289, allocations: 33.78 kB / 453.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1289, allocations: 4 kB / 453.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.1289, allocations: 7.984 kB / 453.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1289, allocations: 0 / 453.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.1302, allocations: 0.6552 MB / 454.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.1302, allocations: 4 kB / 454.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.1307, allocations: 91.88 kB / 454.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.747e-05/0.1307, allocations: 4 kB / 454.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.1307, allocations: 8 kB / 454.5 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.1307, allocations: 7.938 kB / 454.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.1308, allocations: 7.938 kB / 454.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007088/0.1315, allocations: 0.8266 MB / 455.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.92e-05/0.1316, allocations: 108.8 kB / 455.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.268e-05/0.1316, allocations: 19.92 kB / 455.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003287/0.132, allocations: 8 kB / 455.5 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.761e-05/0.132, allocations: 23.91 kB / 455.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.1321, allocations: 12.12 kB / 455.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.1322, allocations: 190 kB / 455.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1322, allocations: 0 / 455.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007152/0.1329, allocations: 103.8 kB / 455.8 MB, free: 6.75 MB / 334.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.001134/0.1341, allocations: 1.369 MB / 457.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000563/0.1347, allocations: 298.6 kB / 457.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1347, allocations: 0 / 457.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.1349, allocations: 96.02 kB / 457.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009816/0.1358, allocations: 73.88 kB / 457.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006325/0.1422, allocations: 4.939 MB / 462.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1426, allocations: 0.8028 MB / 463.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.1429, allocations: 43.25 kB / 463.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.143, allocations: 115.4 kB / 463.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.143, allocations: 0 / 463.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.1713, allocations: 6.446 MB / 470 MB, free: 8.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/7.864, allocations: 3.594 kB / 470 MB, free: 8.105 MB / 350.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