Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01077/0.01077, allocations: 162 kB / 15.12 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.693/1.693, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001864/0.001864, allocations: 114.4 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4678/0.4678, allocations: 38.04 MB / 303.7 MB, free: 42.48 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005037/0.0005039, allocations: 12 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1444, allocations: 48.7 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004119/0.1486, allocations: 1.542 MB / 413.2 MB, free: 3.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1505, allocations: 491.3 kB / 413.7 MB, free: 2.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.1509, allocations: 4 kB / 413.7 MB, free: 2.676 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 7.399e-05/0.151, allocations: 11.86 kB / 413.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002703/0.1513, allocations: 27.77 kB / 413.8 MB, free: 2.637 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.1516, allocations: 31.91 kB / 413.8 MB, free: 2.605 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.152, allocations: 139.3 kB / 413.9 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.1523, allocations: 53.77 kB / 414 MB, free: 2.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.1525, allocations: 47.8 kB / 414 MB, free: 2.363 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1527, allocations: 51.77 kB / 414.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-05/0.1528, allocations: 8 kB / 414.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.1529, allocations: 8 kB / 414.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.1529, allocations: 27.84 kB / 414.1 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.685e-05/0.153, allocations: 45.64 kB / 414.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.1533, allocations: 107.9 kB / 414.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1533, allocations: 0 / 414.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1534, allocations: 4 kB / 414.3 MB, free: 2.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1534, allocations: 0 / 414.3 MB, free: 2.109 MB / 314.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.001045/0.1544, allocations: 418.9 kB / 414.7 MB, free: 1.652 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.004e-05/0.1545, allocations: 8.031 kB / 414.7 MB, free: 1.645 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.967e-05/0.1547, allocations: 46.55 kB / 414.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.1548, allocations: 15.81 kB / 414.8 MB, free: 1.574 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.1552, allocations: 206.8 kB / 415 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.1552, allocations: 12 kB / 415 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.1553, allocations: 16 kB / 415 MB, free: 1.305 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005761/0.1559, allocations: 121.6 kB / 415.1 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.1559, allocations: 0 / 415.1 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.156, allocations: 8 kB / 415.1 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.156, allocations: 4 kB / 415.1 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.1565, allocations: 87.88 kB / 415.2 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.1581, allocations: 480.1 kB / 415.7 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.1587, allocations: 126.4 kB / 415.8 MB, free: 440 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.1591, allocations: 65.02 kB / 415.9 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.1591, allocations: 0 / 415.9 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.1592, allocations: 34.56 kB / 415.9 MB, free: 328 kB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.815e-06/0.1592, allocations: 0 / 415.9 MB, free: 328 kB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.003433/0.1626, allocations: 0.8254 MB / 416.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.1628, allocations: 55.41 kB / 416.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002731/0.1631, allocations: 141.2 kB / 416.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.1631, allocations: 29.7 kB / 416.9 MB, free: 15.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1633, allocations: 112.3 kB / 417 MB, free: 15.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1634, allocations: 63.11 kB / 417.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.1635, allocations: 0 / 417.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000245/0.1637, allocations: 330.8 kB / 417.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.164, allocations: 48.34 kB / 417.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.1642, allocations: 72.16 kB / 417.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.1644, allocations: 56 kB / 417.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1644, allocations: 0 / 417.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006598/0.1651, allocations: 214.1 kB / 417.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.1652, allocations: 8 kB / 417.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1652, allocations: 0 / 417.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002593/0.1654, allocations: 44.78 kB / 417.9 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.1657, allocations: 35.98 kB / 417.9 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.1678, allocations: 1.553 MB / 419.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.168, allocations: 12.09 kB / 419.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.168, allocations: 8 kB / 419.5 MB, free: 12.44 MB / 330.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.0001643/0.1682, allocations: 128.1 kB / 419.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.1683, allocations: 19.84 kB / 419.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.179e-05/0.1683, allocations: 21.19 kB / 419.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1683, allocations: 0 / 419.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1684, allocations: 0 / 419.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.1684, allocations: 8 kB / 419.6 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.1696, allocations: 0.5544 MB / 420.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.1696, allocations: 4.031 kB / 420.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.17, allocations: 35.97 kB / 420.2 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/0.1702, allocations: 36.81 kB / 420.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1702, allocations: 7.953 kB / 420.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.1718, allocations: 1.374 MB / 421.7 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1718, allocations: 32 / 421.7 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008138/0.1726, allocations: 353.7 kB / 422 MB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1728, allocations: 100.9 kB / 422.1 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.1728, allocations: 4 kB / 422.1 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.173, allocations: 8 kB / 422.1 MB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.1731, allocations: 11.98 kB / 422.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.1731, allocations: 4 kB / 422.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.1732, allocations: 118.8 kB / 422.2 MB, free: 9.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1733, allocations: 0 / 422.2 MB, free: 9.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000472/0.1737, allocations: 36 kB / 422.3 MB, free: 9.391 MB / 330.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.001153/0.1749, allocations: 0.8896 MB / 423.2 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007308/0.1757, allocations: 258.5 kB / 423.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.1757, allocations: 4.125 kB / 423.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000432/0.1761, allocations: 198.5 kB / 423.6 MB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.1767, allocations: 24.27 kB / 423.6 MB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.1798, allocations: 1.099 MB / 424.7 MB, free: 6.812 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.1803, allocations: 0.7208 MB / 425.5 MB, free: 6.066 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.1804, allocations: 17.36 kB / 425.5 MB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.1806, allocations: 43.42 kB / 425.5 MB, free: 6.008 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1806, allocations: 0 / 425.5 MB, free: 6.008 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08635/0.267, allocations: 3.027 MB / 428.5 MB, free: 3.027 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003616/0.2674, allocations: 217.2 kB / 428.8 MB, free: 2.785 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.643/2.91, allocations: 0 / 428.8 MB, free: 2.785 MB / 330.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