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.008154/0.008154, allocations: 99.95 kB / 15.87 MB, free: 6.289 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.001381/0.001381, allocations: 194.8 kB / 16.79 MB, free: 6.219 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.638/1.638, allocations: 205.1 MB / 222.6 MB, free: 4.941 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.404/0.404, allocations: 43.49 MB / 313.5 MB, free: 8.656 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.001576/0.001576, allocations: 66.56 kB / 382 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1465, allocations: 57.78 MB / 439.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004399/0.151, allocations: 2.874 MB / 442.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1522, allocations: 0.7371 MB / 443.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1523, allocations: 8 kB / 443.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.1525, allocations: 43.64 kB / 443.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002026/0.1528, allocations: 107.1 kB / 443.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.153, allocations: 71.94 kB / 443.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000379/0.1534, allocations: 414 kB / 444.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1536, allocations: 113.1 kB / 444.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.1539, allocations: 163.3 kB / 444.3 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.1541, allocations: 167.2 kB / 444.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.1541, allocations: 20 kB / 444.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.1542, allocations: 28 kB / 444.5 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.1543, allocations: 75.69 kB / 444.6 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.1544, allocations: 183.1 kB / 444.8 MB, free: 10.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003707/0.1548, allocations: 410.7 kB / 445.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1548, allocations: 0 / 445.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1548, allocations: 4 kB / 445.2 MB, free: 9.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1549, allocations: 0 / 445.2 MB, free: 9.742 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.001012/0.1559, allocations: 0.6474 MB / 445.8 MB, free: 9.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1559, allocations: 8.031 kB / 445.8 MB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.387e-05/0.156, allocations: 40.47 kB / 445.9 MB, free: 9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.1564, allocations: 276.5 kB / 446.2 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.449e-05/0.1564, allocations: 33.36 kB / 446.2 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.1565, allocations: 40.28 kB / 446.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006347/0.1571, allocations: 406.4 kB / 446.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.1572, allocations: 7.906 kB / 446.6 MB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.1572, allocations: 16 kB / 446.6 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.1572, allocations: 8 kB / 446.7 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.1577, allocations: 219.7 kB / 446.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1598, allocations: 1.718 MB / 448.6 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.1603, allocations: 262.3 kB / 448.8 MB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.1605, allocations: 98.08 kB / 448.9 MB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.1605, allocations: 12.16 kB / 449 MB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.1605, allocations: 42.55 kB / 449 MB, free: 5.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.853e-06/0.1605, allocations: 4 kB / 449 MB, free: 5.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006664/0.1612, allocations: 257.3 kB / 449.2 MB, free: 5.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.1613, allocations: 213.6 kB / 449.5 MB, free: 5.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.1616, allocations: 278.8 kB / 449.7 MB, free: 4.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1616, allocations: 30.08 kB / 449.8 MB, free: 4.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.1618, allocations: 243.2 kB / 450 MB, free: 4.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.1619, allocations: 122.3 kB / 450.1 MB, free: 4.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.162, allocations: 98.25 kB / 450.2 MB, free: 4.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1622, allocations: 346.8 kB / 450.6 MB, free: 3.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1624, allocations: 101.2 kB / 450.6 MB, free: 3.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.1628, allocations: 428.8 kB / 451.1 MB, free: 3.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.1634, allocations: 0.5705 MB / 451.6 MB, free: 2.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1635, allocations: 4 kB / 451.6 MB, free: 2.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000829/0.1643, allocations: 0.521 MB / 452.2 MB, free: 2.035 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1643, allocations: 12 kB / 452.2 MB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1643, allocations: 12.12 kB / 452.2 MB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.1644, allocations: 16 kB / 452.2 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.1648, allocations: 155.7 kB / 452.4 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.1648, allocations: 19.92 kB / 452.4 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.1651, allocations: 63.38 kB / 452.4 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.1652, allocations: 32 kB / 452.5 MB, free: 1.73 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.000183/0.1654, allocations: 181.5 kB / 452.6 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.1655, allocations: 39.61 kB / 452.7 MB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.759e-05/0.1656, allocations: 33.78 kB / 452.7 MB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1656, allocations: 4 kB / 452.7 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.1656, allocations: 4 kB / 452.7 MB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1656, allocations: 0 / 452.7 MB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1668, allocations: 0.6436 MB / 453.4 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1668, allocations: 8.062 kB / 453.4 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00045/0.1673, allocations: 91.88 kB / 453.5 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1673, allocations: 4 kB / 453.5 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.1673, allocations: 8 kB / 453.5 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.1673, allocations: 8.375 kB / 453.5 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.1673, allocations: 7.938 kB / 453.5 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3026/0.4699, allocations: 0.8298 MB / 454.3 MB, free: 48.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.4701, allocations: 104.7 kB / 454.4 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.4702, allocations: 13.53 kB / 454.4 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.4706, allocations: 13.73 kB / 454.5 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.4707, allocations: 23.91 kB / 454.5 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.4707, allocations: 11.91 kB / 454.5 MB, free: 48.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.4708, allocations: 181.2 kB / 454.7 MB, free: 48.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4709, allocations: 2.688 kB / 454.7 MB, free: 48.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008786/0.4717, allocations: 107 kB / 454.8 MB, free: 48.35 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.0001181/0.4719, allocations: 105 kB / 454.9 MB, free: 48.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005373/0.4724, allocations: 289 kB / 455.2 MB, free: 48.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4724, allocations: 3.188 kB / 455.2 MB, free: 48.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.4726, allocations: 94.47 kB / 455.3 MB, free: 48.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.4737, allocations: 65.78 kB / 455.3 MB, free: 48.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.4757, allocations: 1.681 MB / 457 MB, free: 47.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.4759, allocations: 0.8 MB / 457.8 MB, free: 46.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.4761, allocations: 38.05 kB / 457.8 MB, free: 46.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.4762, allocations: 32.5 kB / 457.9 MB, free: 46.41 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4762, allocations: 0 / 457.9 MB, free: 46.41 MB / 382.1 MB Notification: Performance of Templates: time 0.0059/0.4821, allocations: 2.758 MB / 460.6 MB, free: 46.24 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