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.00127/0.00127, allocations: 108.5 kB / 16.41 MB, free: 6.492 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.001487/0.001487, 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.596/1.596, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2291/0.2291, allocations: 43.53 MB / 314.1 MB, free: 464 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.00171/0.00171, allocations: 67.91 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1511, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005328/0.1565, allocations: 2.822 MB / 0.4906 GB, free: 8.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1583, allocations: 0.7447 MB / 0.4914 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004312/0.1587, allocations: 15.88 kB / 0.4914 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.159, allocations: 55.44 kB / 0.4914 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004519/0.1595, allocations: 130.8 kB / 0.4916 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.1599, allocations: 87.88 kB / 0.4916 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.1604, allocations: 430 kB / 0.492 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.1607, allocations: 145.5 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.1609, allocations: 175.4 kB / 0.4924 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.1611, allocations: 179.2 kB / 0.4925 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.1613, allocations: 32 kB / 0.4926 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.318e-05/0.1613, allocations: 32 kB / 0.4926 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.1614, allocations: 83.67 kB / 0.4927 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.1617, allocations: 199 kB / 0.4929 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.1621, allocations: 422.5 kB / 0.4933 GB, free: 6.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1621, allocations: 0 / 0.4933 GB, free: 6.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1621, allocations: 3.938 kB / 0.4933 GB, free: 6.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.1622, allocations: 3.984 kB / 0.4933 GB, free: 6.254 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.001072/0.1632, allocations: 0.6436 MB / 0.4939 GB, free: 5.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1633, allocations: 15.89 kB / 0.4939 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/0.1634, allocations: 44.45 kB / 0.494 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.1637, allocations: 276.4 kB / 0.4942 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.1638, allocations: 29.38 kB / 0.4942 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.736e-05/0.1638, allocations: 36.38 kB / 0.4943 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000628/0.1645, allocations: 398.5 kB / 0.4947 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.1645, allocations: 11.84 kB / 0.4947 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.1646, allocations: 16 kB / 0.4947 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.1646, allocations: 12 kB / 0.4947 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004446/0.165, allocations: 227.1 kB / 0.4949 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.1675, allocations: 1.707 MB / 0.4966 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.168, allocations: 266.3 kB / 0.4968 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.1682, allocations: 98.08 kB / 0.4969 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.1682, allocations: 4 kB / 0.4969 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.1683, allocations: 50.66 kB / 0.497 GB, free: 2.133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.472e-06/0.1683, allocations: 0 / 0.497 GB, free: 2.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0008124/0.1691, allocations: 253.1 kB / 0.4972 GB, free: 1.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002042/0.1693, allocations: 214 kB / 0.4974 GB, free: 1.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.1697, allocations: 270.9 kB / 0.4977 GB, free: 1.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1697, allocations: 37.64 kB / 0.4977 GB, free: 1.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.17, allocations: 251.3 kB / 0.498 GB, free: 1.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.1701, allocations: 114.4 kB / 0.4981 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1703, allocations: 98.25 kB / 0.4982 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002913/0.1706, allocations: 346.8 kB / 0.4985 GB, free: 500 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.1708, allocations: 105.2 kB / 0.4986 GB, free: 396 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006109/0.1714, allocations: 420.8 kB / 0.499 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008689/0.1723, allocations: 0.5667 MB / 0.4995 GB, free: 15.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.1723, allocations: 4 kB / 0.4996 GB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009093/0.1732, allocations: 0.5284 MB / 0.5001 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.1733, allocations: 8 kB / 0.5001 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.1733, allocations: 12 kB / 0.5001 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.1733, allocations: 16 kB / 0.5001 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.1738, allocations: 155.7 kB / 0.5003 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.521e-05/0.1738, allocations: 23.91 kB / 0.5003 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.1741, allocations: 68.28 kB / 0.5003 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.1742, allocations: 32 kB / 0.5004 GB, free: 14.24 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.0002403/0.1744, allocations: 185.4 kB / 0.5005 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.1746, allocations: 31.62 kB / 0.5006 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.1747, allocations: 41.7 kB / 0.5006 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1747, allocations: 4 kB / 0.5006 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.1747, allocations: 8 kB / 0.5006 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.1748, allocations: 0 / 0.5006 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.1761, allocations: 0.6514 MB / 0.5013 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1761, allocations: 4 kB / 0.5013 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.1766, allocations: 91.88 kB / 0.5014 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/0.1766, allocations: 4 kB / 0.5014 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.1766, allocations: 8 kB / 0.5014 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.668e-05/0.1767, allocations: 7.938 kB / 0.5014 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1767, allocations: 0 / 0.5014 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.1777, allocations: 0.8413 MB / 0.5022 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1779, allocations: 108.8 kB / 0.5023 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.1779, allocations: 11.98 kB / 0.5023 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004073/0.1783, allocations: 11.94 kB / 0.5023 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.1784, allocations: 23.91 kB / 0.5023 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1785, allocations: 16 kB / 0.5024 GB, free: 12.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.1787, allocations: 186 kB / 0.5025 GB, free: 11.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1787, allocations: 3.938 kB / 0.5025 GB, free: 11.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008539/0.1796, allocations: 95.84 kB / 0.5026 GB, free: 11.81 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.0001721/0.1798, allocations: 107.2 kB / 0.5027 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005631/0.1803, allocations: 290.1 kB / 0.503 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1803, allocations: 256 / 0.503 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.1805, allocations: 100.3 kB / 0.5031 GB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.1815, allocations: 79.98 kB / 0.5032 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.1837, allocations: 1.529 MB / 0.5047 GB, free: 9.652 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.1842, allocations: 0.7987 MB / 0.5055 GB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.1844, allocations: 47.25 kB / 0.5055 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.023e-05/0.1844, allocations: 31.38 kB / 0.5055 GB, free: 8.746 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1845, allocations: 0 / 0.5055 GB, free: 8.746 MB / 398.1 MB Notification: Performance of Templates: time 0.006848/0.1913, allocations: 3.01 MB / 0.5085 GB, free: 5.746 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/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