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.001102/0.001102, allocations: 102.5 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 185.8 kB / 16.92 MB, free: 6.691 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.731/1.731, allocations: 205.4 MB / 223.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4089/0.4089, allocations: 43.57 MB / 315 MB, free: 8.988 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.000628/0.0006281, allocations: 12 kB / 384.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1544, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003277/0.1577, allocations: 2.5 MB / 445.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1591, allocations: 0.7254 MB / 446.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.1592, allocations: 8 kB / 446.7 MB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.1594, allocations: 47.62 kB / 446.7 MB, free: 9.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.1597, allocations: 107.1 kB / 446.8 MB, free: 9.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.16, allocations: 75.92 kB / 446.9 MB, free: 9.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.1604, allocations: 410 kB / 447.3 MB, free: 9.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.1607, allocations: 113.1 kB / 447.4 MB, free: 8.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1609, allocations: 151.4 kB / 447.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.1611, allocations: 167.2 kB / 447.7 MB, free: 8.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.1612, allocations: 20 kB / 447.7 MB, free: 8.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.624e-05/0.1612, allocations: 20 kB / 447.8 MB, free: 8.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.1613, allocations: 67.7 kB / 447.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.1616, allocations: 208.8 kB / 448 MB, free: 8.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.162, allocations: 386.7 kB / 448.4 MB, free: 7.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.162, allocations: 7.875 kB / 448.4 MB, free: 7.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.162, allocations: 0 / 448.4 MB, free: 7.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.162, allocations: 0 / 448.4 MB, free: 7.906 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.0008803/0.1629, allocations: 0.5773 MB / 449 MB, free: 7.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.163, allocations: 11.97 kB / 449 MB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.1631, allocations: 48.41 kB / 449 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.1636, allocations: 276.4 kB / 449.3 MB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.1636, allocations: 29.38 kB / 449.3 MB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.554e-05/0.1637, allocations: 44.27 kB / 449.4 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008022/0.1645, allocations: 406.4 kB / 449.8 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.1646, allocations: 11.91 kB / 449.8 MB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.1646, allocations: 16 kB / 449.8 MB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1646, allocations: 12 kB / 449.8 MB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.1651, allocations: 227.7 kB / 450 MB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.1673, allocations: 1.726 MB / 451.8 MB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.1678, allocations: 258.4 kB / 452 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.168, allocations: 110 kB / 452.1 MB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1681, allocations: 7.938 kB / 452.1 MB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.1681, allocations: 38.56 kB / 452.2 MB, free: 3.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.605e-06/0.1681, allocations: 0 / 452.2 MB, free: 3.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006746/0.1688, allocations: 277.1 kB / 452.5 MB, free: 3.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.1689, allocations: 217.5 kB / 452.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.1692, allocations: 275.2 kB / 452.9 MB, free: 3.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1692, allocations: 33.69 kB / 453 MB, free: 2.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.1694, allocations: 235.4 kB / 453.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.178e-05/0.1695, allocations: 118.4 kB / 453.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.1696, allocations: 53.69 kB / 453.4 MB, free: 2.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1697, allocations: 338.8 kB / 453.7 MB, free: 2.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.17, allocations: 105.2 kB / 453.8 MB, free: 2.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004898/0.1705, allocations: 436.8 kB / 454.2 MB, free: 1.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000676/0.1711, allocations: 0.5781 MB / 454.8 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.1712, allocations: 0 / 454.8 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008304/0.172, allocations: 0.5324 MB / 455.3 MB, free: 256 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.172, allocations: 12.91 kB / 455.3 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1721, allocations: 8 kB / 455.4 MB, free: 236 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.1721, allocations: 23.98 kB / 455.4 MB, free: 212 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/0.1725, allocations: 151.7 kB / 455.5 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/0.1725, allocations: 23.92 kB / 455.5 MB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2661/0.4386, allocations: 63.78 kB / 455.6 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.4387, allocations: 32.5 kB / 455.6 MB, free: 45.26 MB / 382.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.0002539/0.439, allocations: 183.1 kB / 455.8 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.4392, allocations: 37.27 kB / 455.9 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.172e-05/0.4393, allocations: 36.3 kB / 455.9 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.4393, allocations: 8.562 kB / 455.9 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.4393, allocations: 3.609 kB / 455.9 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.4393, allocations: 4.188 kB / 455.9 MB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.4407, allocations: 0.6487 MB / 456.6 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4407, allocations: 4.094 kB / 456.6 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.4412, allocations: 92.17 kB / 456.7 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.4412, allocations: 2.844 kB / 456.7 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.4412, allocations: 9.75 kB / 456.7 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.4412, allocations: 5.719 kB / 456.7 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.4412, allocations: 6.547 kB / 456.7 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006591/0.4419, allocations: 0.846 MB / 457.5 MB, free: 44.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.718e-05/0.442, allocations: 110.4 kB / 457.6 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.442, allocations: 9.406 kB / 457.6 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.4424, allocations: 9.625 kB / 457.6 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.938e-05/0.4425, allocations: 32.11 kB / 457.7 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4425, allocations: 11.84 kB / 457.7 MB, free: 44.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.4426, allocations: 186.8 kB / 457.9 MB, free: 43.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4426, allocations: 0 / 457.9 MB, free: 43.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000765/0.4434, allocations: 102.3 kB / 458 MB, free: 43.97 MB / 382.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.0001445/0.4436, allocations: 112.9 kB / 458.1 MB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005353/0.4441, allocations: 296.6 kB / 458.4 MB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4441, allocations: 0 / 458.4 MB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.4443, allocations: 94.69 kB / 458.5 MB, free: 43.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4453, allocations: 64.09 kB / 458.5 MB, free: 43.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.4475, allocations: 1.941 MB / 460.5 MB, free: 42.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.4478, allocations: 0.7962 MB / 461.3 MB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.448, allocations: 38.03 kB / 461.3 MB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.448, allocations: 28.06 kB / 461.3 MB, free: 41.81 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.448, allocations: 4 kB / 461.3 MB, free: 41.81 MB / 382.1 MB Notification: Performance of Templates: time 0.005826/0.4539, allocations: 2.741 MB / 464.1 MB, free: 41.64 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches