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.001407/0.001407, allocations: 120.8 kB / 17.09 MB, free: 5.965 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.001156/0.001156, allocations: 198.5 kB / 18.02 MB, free: 5.047 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.334/1.334, allocations: 205.1 MB / 223.9 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.2032/0.2032, allocations: 43.52 MB / 314.8 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.00142/0.00142, allocations: 61.47 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1129, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004255/0.1172, allocations: 2.834 MB / 0.4913 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.1187, allocations: 0.7447 MB / 0.492 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000336/0.1191, allocations: 15.94 kB / 0.492 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.1194, allocations: 51.45 kB / 0.4921 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000421/0.1198, allocations: 126.8 kB / 0.4922 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.1202, allocations: 91.88 kB / 0.4923 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000626/0.1209, allocations: 434 kB / 0.4927 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.1212, allocations: 145.5 kB / 0.4928 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003323/0.1215, allocations: 167.4 kB / 0.493 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.1219, allocations: 179.2 kB / 0.4932 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.869e-05/0.122, allocations: 35.94 kB / 0.4932 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.1221, allocations: 32 kB / 0.4932 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.078e-05/0.1221, allocations: 83.69 kB / 0.4933 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1223, allocations: 195.1 kB / 0.4935 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005169/0.1229, allocations: 426.5 kB / 0.4939 GB, free: 6.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1229, allocations: 0 / 0.4939 GB, free: 6.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1229, allocations: 0 / 0.4939 GB, free: 6.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.1229, allocations: 4 kB / 0.4939 GB, free: 6.242 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.001058/0.124, allocations: 0.6469 MB / 0.4946 GB, free: 5.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.124, allocations: 11.89 kB / 0.4946 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.155e-05/0.1241, allocations: 40.47 kB / 0.4946 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.1246, allocations: 288.3 kB / 0.4949 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.1246, allocations: 25.38 kB / 0.4949 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.1247, allocations: 44.31 kB / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.1254, allocations: 394.5 kB / 0.4953 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.1254, allocations: 7.906 kB / 0.4953 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.1254, allocations: 16 kB / 0.4953 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.1255, allocations: 12 kB / 0.4954 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.1259, allocations: 219.7 kB / 0.4956 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.1282, allocations: 1.711 MB / 0.4972 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004203/0.1286, allocations: 270.2 kB / 0.4975 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.1288, allocations: 94.08 kB / 0.4976 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.1288, allocations: 8.219 kB / 0.4976 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.1289, allocations: 50.66 kB / 0.4976 GB, free: 2.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.974e-06/0.1289, allocations: 0 / 0.4976 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.000673/0.1295, allocations: 257.1 kB / 0.4979 GB, free: 1.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.1297, allocations: 217.9 kB / 0.4981 GB, free: 1.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1299, allocations: 274.9 kB / 0.4984 GB, free: 1.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.13, allocations: 29.64 kB / 0.4984 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1301, allocations: 239.2 kB / 0.4986 GB, free: 1.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.1302, allocations: 122.3 kB / 0.4987 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1303, allocations: 94.25 kB / 0.4988 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1305, allocations: 350.7 kB / 0.4991 GB, free: 484 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.1307, allocations: 105.2 kB / 0.4992 GB, free: 380 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/0.1311, allocations: 424.8 kB / 0.4997 GB, free: 15.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.1318, allocations: 0.5706 MB / 0.5002 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.1318, allocations: 4.5 kB / 0.5002 GB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008537/0.1327, allocations: 0.5245 MB / 0.5007 GB, free: 14.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.1327, allocations: 12 kB / 0.5007 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.1327, allocations: 8 kB / 0.5007 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.1328, allocations: 16 kB / 0.5008 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.1332, allocations: 155.7 kB / 0.5009 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.1332, allocations: 15.94 kB / 0.5009 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.1335, allocations: 71.8 kB / 0.501 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.1336, allocations: 35.98 kB / 0.501 GB, free: 14.22 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.0001743/0.1338, allocations: 185.4 kB / 0.5012 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.1339, allocations: 35.62 kB / 0.5012 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.321e-05/0.134, allocations: 33.78 kB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.134, allocations: 4 kB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.134, allocations: 4 kB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.134, allocations: 3.984 kB / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.1353, allocations: 0.6475 MB / 0.5019 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.1353, allocations: 4 kB / 0.5019 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000437/0.1358, allocations: 83.89 kB / 0.502 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.1358, allocations: 7.984 kB / 0.502 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.1358, allocations: 8 kB / 0.502 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1358, allocations: 7.938 kB / 0.502 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1358, allocations: 8.062 kB / 0.502 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007341/0.1366, allocations: 0.8373 MB / 0.5028 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.021e-05/0.1367, allocations: 104.8 kB / 0.5029 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.1367, allocations: 8 kB / 0.503 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000339/0.1371, allocations: 19.92 kB / 0.503 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.1371, allocations: 27.84 kB / 0.503 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.1372, allocations: 12 kB / 0.503 GB, free: 12.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.1373, allocations: 189.9 kB / 0.5032 GB, free: 11.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1373, allocations: 0 / 0.5032 GB, free: 11.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.1381, allocations: 95.84 kB / 0.5033 GB, free: 11.8 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.0001331/0.1382, allocations: 111.2 kB / 0.5034 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.1388, allocations: 293.9 kB / 0.5037 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1388, allocations: 320 / 0.5037 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.139, allocations: 92.64 kB / 0.5038 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009975/0.14, allocations: 79.84 kB / 0.5038 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.1421, allocations: 1.57 MB / 0.5054 GB, free: 9.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.1425, allocations: 0.7948 MB / 0.5061 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.375e-05/0.1426, allocations: 31.44 kB / 0.5062 GB, free: 8.738 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1426, allocations: 0 / 0.5062 GB, free: 8.738 MB / 398.1 MB Notification: Performance of Templates: time 0.006902/0.1496, allocations: 4.148 MB / 0.5102 GB, free: 4.59 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