Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01553/0.01553, allocations: 176 kB / 15.13 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.228/2.228, allocations: 194.5 MB / 210.3 MB, free: 7.785 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001848/0.001848, allocations: 108.1 kB / 255.6 MB, free: 10.41 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2661/0.2661, allocations: 40 MB / 340.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006894/0.0006897, allocations: 13.09 kB / 406.3 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1551, allocations: 54.87 MB / 461.1 MB, free: 3.219 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002197/0.1574, allocations: 1.563 MB / 462.7 MB, free: 1.633 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008948/0.1583, allocations: 496.1 kB / 463.2 MB, free: 1.145 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.1585, allocations: 4 kB / 463.2 MB, free: 1.141 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.15e-05/0.1585, allocations: 7.922 kB / 463.2 MB, free: 1.133 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1587, allocations: 35.7 kB / 463.2 MB, free: 1.098 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.1589, allocations: 27.97 kB / 463.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.1591, allocations: 135.3 kB / 463.4 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.1593, allocations: 49.73 kB / 463.4 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.1594, allocations: 51.78 kB / 463.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.1595, allocations: 55.64 kB / 463.6 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.1595, allocations: 8 kB / 463.6 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.02e-05/0.1596, allocations: 12 kB / 463.6 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.537e-05/0.1596, allocations: 19.92 kB / 463.6 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.1597, allocations: 49.64 kB / 463.6 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.1598, allocations: 107.7 kB / 463.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1598, allocations: 0 / 463.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1598, allocations: 0 / 463.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1599, allocations: 0 / 463.7 MB, free: 0.5781 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005784/0.1604, allocations: 414.9 kB / 464.2 MB, free: 128 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1605, allocations: 8.031 kB / 464.2 MB, free: 120 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.952e-05/0.1606, allocations: 46.55 kB / 464.2 MB, free: 64 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.1606, allocations: 11.91 kB / 464.2 MB, free: 52 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.1609, allocations: 202.8 kB / 464.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1609, allocations: 11.94 kB / 464.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.161, allocations: 16 kB / 464.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003765/0.1614, allocations: 133.5 kB / 464.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.1614, allocations: 0 / 464.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.1614, allocations: 15.95 kB / 464.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.1615, allocations: 0 / 464.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.1618, allocations: 79.95 kB / 464.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009968/0.1628, allocations: 476.2 kB / 465.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.1631, allocations: 118.5 kB / 465.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.1633, allocations: 56.84 kB / 465.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.1634, allocations: 11.98 kB / 465.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.1634, allocations: 34.55 kB / 465.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.884e-06/0.1634, allocations: 0 / 465.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.002223/0.1657, allocations: 0.8177 MB / 466.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.1657, allocations: 51.41 kB / 466.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.1659, allocations: 141.5 kB / 466.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.1659, allocations: 29.7 kB / 466.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.718e-05/0.166, allocations: 120.3 kB / 466.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.91e-05/0.1661, allocations: 67.03 kB / 466.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.1661, allocations: 4 kB / 466.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1663, allocations: 322.8 kB / 466.9 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1665, allocations: 44.36 kB / 466.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.1667, allocations: 76.16 kB / 467 MB, free: 13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.1669, allocations: 55.98 kB / 467.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1669, allocations: 0 / 467.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006173/0.1675, allocations: 210.1 kB / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.1676, allocations: 8 kB / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1676, allocations: 8.016 kB / 467.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002458/0.1678, allocations: 44.84 kB / 467.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.1681, allocations: 35.97 kB / 467.4 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.1701, allocations: 1.561 MB / 468.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.1703, allocations: 7.984 kB / 468.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.1703, allocations: 8 kB / 468.9 MB, free: 10.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.1705, allocations: 141.7 kB / 469.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.1706, allocations: 7.906 kB / 469.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.1706, allocations: 21.19 kB / 469.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1706, allocations: 0 / 469.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.1707, allocations: 4 kB / 469.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1707, allocations: 3.984 kB / 469.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.1719, allocations: 0.5597 MB / 469.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1719, allocations: 192 / 469.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.1722, allocations: 39.98 kB / 469.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002136/0.1724, allocations: 28.84 kB / 469.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.1725, allocations: 7.984 kB / 469.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/0.174, allocations: 1.367 MB / 471.1 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.174, allocations: 0 / 471.1 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/0.1749, allocations: 349.7 kB / 471.5 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.29e-05/0.175, allocations: 96.89 kB / 471.5 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.175, allocations: 4 kB / 471.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.1752, allocations: 16.05 kB / 471.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.1752, allocations: 11.92 kB / 471.6 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.1753, allocations: 8 kB / 471.6 MB, free: 8.027 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001304/0.1754, allocations: 107.2 kB / 471.7 MB, free: 7.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1754, allocations: 0 / 471.7 MB, free: 7.922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004807/0.1759, allocations: 40 kB / 471.7 MB, free: 7.883 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001147/0.1771, allocations: 0.8817 MB / 472.6 MB, free: 6.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000726/0.1778, allocations: 265.2 kB / 472.9 MB, free: 6.699 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1778, allocations: 0 / 472.9 MB, free: 6.699 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004193/0.1783, allocations: 210.4 kB / 473.1 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/0.1788, allocations: 16.12 kB / 473.1 MB, free: 6.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.1816, allocations: 1.107 MB / 474.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1821, allocations: 0.7204 MB / 474.9 MB, free: 4.555 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.442e-05/0.1822, allocations: 17.42 kB / 474.9 MB, free: 4.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1823, allocations: 43.42 kB / 475 MB, free: 4.496 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1823, allocations: 0 / 475 MB, free: 4.496 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02942/0.2118, allocations: 3.018 MB / 478 MB, free: 1.551 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003296/0.2122, allocations: 212.9 kB / 478.2 MB, free: 1.316 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/2.947, allocations: 0 / 478.2 MB, free: 1.316 MB / 314.7 MB "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.phi_support,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport