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: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 116.7 kB / 17.05 MB, free: 6 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.001041/0.001042, allocations: 189.7 kB / 17.98 MB, free: 5.09 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.387/1.387, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.2106/0.2106, allocations: 43.52 MB / 314.7 MB, free: 468 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.001393/0.001393, allocations: 73.45 kB / 442.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 57.79 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003677/0.1053, allocations: 2.838 MB / 0.4912 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1065, allocations: 0.7409 MB / 0.492 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1066, allocations: 7.938 kB / 0.492 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1068, allocations: 59.38 kB / 0.492 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.1071, allocations: 122.9 kB / 0.4922 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.1073, allocations: 91.88 kB / 0.4922 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003784/0.1077, allocations: 426 kB / 0.4926 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.1079, allocations: 149.5 kB / 0.4928 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1081, allocations: 171.3 kB / 0.493 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.1084, allocations: 175.2 kB / 0.4931 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.1084, allocations: 36 kB / 0.4932 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.186e-05/0.1085, allocations: 36 kB / 0.4932 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.1085, allocations: 71.7 kB / 0.4933 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1087, allocations: 203.1 kB / 0.4935 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003705/0.1091, allocations: 426.5 kB / 0.4939 GB, free: 6.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1091, allocations: 0 / 0.4939 GB, free: 6.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1091, allocations: 0 / 0.4939 GB, free: 6.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.1091, allocations: 0 / 0.4939 GB, free: 6.293 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.0008827/0.11, allocations: 0.6436 MB / 0.4945 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1101, allocations: 11.89 kB / 0.4945 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.079e-05/0.1101, allocations: 44.47 kB / 0.4945 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003223/0.1105, allocations: 284.3 kB / 0.4948 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.1105, allocations: 29.38 kB / 0.4948 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.1106, allocations: 36.38 kB / 0.4949 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.1111, allocations: 398.5 kB / 0.4953 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.1112, allocations: 3.906 kB / 0.4953 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.1112, allocations: 19.94 kB / 0.4953 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1112, allocations: 12 kB / 0.4953 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004104/0.1116, allocations: 227.2 kB / 0.4955 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.1137, allocations: 1.711 MB / 0.4972 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.1142, allocations: 266.3 kB / 0.4974 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.1143, allocations: 102.1 kB / 0.4975 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.1144, allocations: 0 / 0.4975 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.1144, allocations: 46.67 kB / 0.4976 GB, free: 2.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.333e-06/0.1144, allocations: 0 / 0.4976 GB, free: 2.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006273/0.115, allocations: 261.1 kB / 0.4978 GB, free: 1.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.857e-05/0.1151, allocations: 221.9 kB / 0.498 GB, free: 1.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.1154, allocations: 274.9 kB / 0.4983 GB, free: 1.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1154, allocations: 29.7 kB / 0.4983 GB, free: 1.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.1156, allocations: 239.3 kB / 0.4986 GB, free: 1.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.259e-05/0.1156, allocations: 118.4 kB / 0.4987 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.1158, allocations: 102.2 kB / 0.4988 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1159, allocations: 342.7 kB / 0.4991 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1161, allocations: 101.3 kB / 0.4992 GB, free: 436 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003669/0.1165, allocations: 424.8 kB / 0.4996 GB, free: 15.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.1171, allocations: 0.5784 MB / 0.5002 GB, free: 15.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1171, allocations: 4 kB / 0.5002 GB, free: 15.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008054/0.1179, allocations: 0.5208 MB / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.118, allocations: 12 kB / 0.5007 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.118, allocations: 12 kB / 0.5007 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.118, allocations: 16 kB / 0.5007 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/0.1184, allocations: 143.8 kB / 0.5008 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.1184, allocations: 23.92 kB / 0.5009 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.1187, allocations: 63.66 kB / 0.5009 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.1188, allocations: 43.98 kB / 0.501 GB, free: 14.27 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.0001637/0.1189, allocations: 181.4 kB / 0.5011 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.1191, allocations: 31.62 kB / 0.5012 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.307e-05/0.1191, allocations: 33.78 kB / 0.5012 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1192, allocations: 8 kB / 0.5012 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1192, allocations: 0 / 0.5012 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1192, allocations: 4 kB / 0.5012 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1203, allocations: 0.6553 MB / 0.5019 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1204, allocations: 0 / 0.5019 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.1208, allocations: 84.52 kB / 0.5019 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.1208, allocations: 7.938 kB / 0.5019 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.1208, allocations: 15.98 kB / 0.502 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1208, allocations: 7.938 kB / 0.502 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.1209, allocations: 11.92 kB / 0.502 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007022/0.1216, allocations: 0.8413 MB / 0.5028 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.406e-05/0.1216, allocations: 108.8 kB / 0.5029 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.1217, allocations: 8 kB / 0.5029 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.122, allocations: 19.86 kB / 0.5029 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.1221, allocations: 19.98 kB / 0.5029 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.1221, allocations: 11.98 kB / 0.503 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.1223, allocations: 186 kB / 0.5031 GB, free: 11.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1223, allocations: 0 / 0.5031 GB, free: 11.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007172/0.123, allocations: 99.84 kB / 0.5032 GB, free: 11.84 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.0001142/0.1231, allocations: 107.2 kB / 0.5033 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005092/0.1236, allocations: 293.5 kB / 0.5036 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1236, allocations: 0.75 kB / 0.5036 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.1238, allocations: 92.02 kB / 0.5037 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009515/0.1248, allocations: 76.33 kB / 0.5038 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.1268, allocations: 1.562 MB / 0.5053 GB, free: 9.652 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.1272, allocations: 0.8065 MB / 0.5061 GB, free: 8.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.789e-05/0.1273, allocations: 27.44 kB / 0.5061 GB, free: 8.789 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1273, allocations: 0 / 0.5061 GB, free: 8.789 MB / 398.1 MB Notification: Performance of Templates: time 0.005962/0.1333, allocations: 4.109 MB / 0.5101 GB, free: 4.68 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/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