Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.01449/0.01449, allocations: 175.9 kB / 15.13 MB, free: 6.023 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.189/2.189, allocations: 194.5 MB / 210.3 MB, free: 7.602 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.001788/0.001788, allocations: 128 kB / 255.6 MB, free: 10.22 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.2766/0.2766, allocations: 40.02 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006852/0.0006857, allocations: 11.38 kB / 406.3 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1479, allocations: 54.88 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004411/0.1524, allocations: 2.357 MB / 463.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1545, allocations: 0.6908 MB / 464.2 MB, free: 128 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/0.1549, allocations: 8 kB / 464.2 MB, free: 120 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.155, allocations: 31.7 kB / 464.2 MB, free: 88 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005606/0.1556, allocations: 111.2 kB / 464.3 MB, free: 15.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004557/0.1561, allocations: 59.86 kB / 464.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008813/0.157, allocations: 402 kB / 464.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004138/0.1575, allocations: 104.2 kB / 464.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004473/0.1579, allocations: 143.4 kB / 465 MB, free: 15.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004265/0.1584, allocations: 155.3 kB / 465.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.044e-05/0.1585, allocations: 20 kB / 465.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1586, allocations: 20 kB / 465.2 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1588, allocations: 67.75 kB / 465.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.159, allocations: 93.52 kB / 465.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006573/0.1596, allocations: 307.1 kB / 465.7 MB, free: 14.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1597, allocations: 3.938 kB / 465.7 MB, free: 14.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1597, allocations: 0 / 465.7 MB, free: 14.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1597, allocations: 0 / 465.7 MB, free: 14.62 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001808/0.1615, allocations: 0.5849 MB / 466.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.398e-05/0.1616, allocations: 12.03 kB / 466.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001674/0.1618, allocations: 70.53 kB / 466.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.162, allocations: 43.53 kB / 466.4 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.1626, allocations: 275.2 kB / 466.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.1627, allocations: 29 kB / 466.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.1628, allocations: 47.89 kB / 466.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.1642, allocations: 394.1 kB / 467.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.538e-05/0.1643, allocations: 15.89 kB / 467.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.1644, allocations: 16 kB / 467.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.1644, allocations: 8 kB / 467.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.1656, allocations: 223.7 kB / 467.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.1703, allocations: 1.719 MB / 469.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.1711, allocations: 270.3 kB / 469.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.1714, allocations: 102.1 kB / 469.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.1715, allocations: 7.938 kB / 469.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.1715, allocations: 42.5 kB / 469.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.977e-06/0.1715, allocations: 0 / 469.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.001086/0.1726, allocations: 273 kB / 469.8 MB, free: 10.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.1728, allocations: 221.9 kB / 470 MB, free: 9.922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.1733, allocations: 270.9 kB / 470.3 MB, free: 9.648 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.1733, allocations: 29.7 kB / 470.3 MB, free: 9.613 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.1736, allocations: 243.2 kB / 470.5 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.1737, allocations: 114.5 kB / 470.6 MB, free: 9.254 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.1737, allocations: 12 kB / 470.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1739, allocations: 346.8 kB / 471 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.1743, allocations: 97.27 kB / 471.1 MB, free: 8.801 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.1749, allocations: 428.8 kB / 471.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004974/0.1755, allocations: 175.8 kB / 471.7 MB, free: 8.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.557e-06/0.1755, allocations: 4 kB / 471.7 MB, free: 8.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001443/0.1769, allocations: 0.5252 MB / 472.2 MB, free: 7.512 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.177, allocations: 16.09 kB / 472.2 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.177, allocations: 12 kB / 472.2 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.639e-05/0.1771, allocations: 16 kB / 472.2 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008646/0.178, allocations: 155.8 kB / 472.4 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.68e-05/0.1781, allocations: 23.88 kB / 472.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/0.1786, allocations: 71.31 kB / 472.5 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.1787, allocations: 35.98 kB / 472.5 MB, free: 7.188 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.179, allocations: 181.5 kB / 472.7 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/0.1792, allocations: 31.62 kB / 472.7 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.1793, allocations: 33.78 kB / 472.8 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1793, allocations: 4 kB / 472.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.1793, allocations: 4 kB / 472.8 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1794, allocations: 3.984 kB / 472.8 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.1814, allocations: 0.6558 MB / 473.4 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.1815, allocations: 4 kB / 473.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.1825, allocations: 87.89 kB / 473.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.1826, allocations: 4 kB / 473.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.1826, allocations: 15.98 kB / 473.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.857e-06/0.1827, allocations: 3.953 kB / 473.6 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1827, allocations: 4 kB / 473.6 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.1839, allocations: 0.8493 MB / 474.4 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1841, allocations: 108.8 kB / 474.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.999e-05/0.1841, allocations: 8 kB / 474.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005143/0.1847, allocations: 11.98 kB / 474.5 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.1848, allocations: 31.92 kB / 474.6 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.1848, allocations: 12 kB / 474.6 MB, free: 5.023 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003064/0.1851, allocations: 182 kB / 474.8 MB, free: 4.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.535e-06/0.1852, allocations: 3.938 kB / 474.8 MB, free: 4.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001061/0.1862, allocations: 99.78 kB / 474.9 MB, free: 4.742 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001556/0.1878, allocations: 1.386 MB / 476.2 MB, free: 3.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009435/0.1888, allocations: 294 kB / 476.5 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.1888, allocations: 0 / 476.5 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.1892, allocations: 87.84 kB / 476.6 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/0.1907, allocations: 64.7 kB / 476.7 MB, free: 2.887 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007366/0.1981, allocations: 3.274 MB / 479.9 MB, free: 15.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005595/0.1987, allocations: 0.8108 MB / 480.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003602/0.1991, allocations: 47.25 kB / 480.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.1993, allocations: 115.4 kB / 480.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1993, allocations: 0 / 480.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03985/0.2392, allocations: 5.966 MB / 486.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003449/0.2396, allocations: 183.9 kB / 487.1 MB, free: 8.266 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.05/3.289, allocations: 0 / 487.1 MB, free: 8.266 MB / 330.7 MB "" Variables in the reference: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 Variables in the result: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,J4.J,J4.a,J4.flange_a.phi,J4.flange_a.tau,J4.flange_b.phi,J4.flange_b.tau,J4.phi,J4.stateSelect,J4.w,J6.J,J6.a,J6.flange_a.phi,J6.flange_a.tau,J6.flange_b.phi,J6.flange_b.tau,J6.phi,J6.stateSelect,J6.w,der(J2.phi),der(J2.w),der(J4.phi),der(J4.w),der(J6.phi),der(J6.w),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(inertia4.phi),der(inertia4.w),der(inertia5.phi),der(inertia5.w),der(inertia6.phi),der(inertia6.w),fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,idealPlanetary1.carrier.phi,idealPlanetary1.carrier.tau,idealPlanetary1.ratio,idealPlanetary1.ring.phi,idealPlanetary1.ring.tau,idealPlanetary1.sun.phi,idealPlanetary1.sun.tau,idealPlanetary2.carrier.phi,idealPlanetary2.carrier.tau,idealPlanetary2.ratio,idealPlanetary2.ring.phi,idealPlanetary2.ring.tau,idealPlanetary2.sun.phi,idealPlanetary2.sun.tau,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,inertia4.J,inertia4.a,inertia4.flange_a.phi,inertia4.flange_a.tau,inertia4.flange_b.phi,inertia4.flange_b.tau,inertia4.phi,inertia4.stateSelect,inertia4.w,inertia5.J,inertia5.a,inertia5.flange_a.phi,inertia5.flange_a.tau,inertia5.flange_b.phi,inertia5.flange_b.tau,inertia5.phi,inertia5.stateSelect,inertia5.w,inertia6.J,inertia6.a,inertia6.flange_a.phi,inertia6.flange_a.tau,inertia6.flange_b.phi,inertia6.flange_b.tau,inertia6.phi,inertia6.stateSelect,inertia6.w,sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport