Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01048/0.01048, allocations: 162.7 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.93/1.93, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.002622/0.002622, allocations: 106.5 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.4833/0.4833, allocations: 38.06 MB / 303.7 MB, free: 42.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004889, allocations: 16 kB / 363 MB, free: 5.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 48.71 MB / 411.7 MB, free: 4.691 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005232/0.1212, allocations: 2.337 MB / 414 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.1235, allocations: 0.686 MB / 414.7 MB, free: 1.648 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000298/0.1239, allocations: 8 kB / 414.7 MB, free: 1.641 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.124, allocations: 39.62 kB / 414.8 MB, free: 1.602 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.1246, allocations: 107.1 kB / 414.9 MB, free: 1.496 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.125, allocations: 67.92 kB / 414.9 MB, free: 1.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008363/0.1259, allocations: 402 kB / 415.3 MB, free: 1.035 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00038/0.1263, allocations: 112.2 kB / 415.4 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003937/0.1267, allocations: 143.4 kB / 415.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.1271, allocations: 155.3 kB / 415.7 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.523e-05/0.1272, allocations: 20 kB / 415.8 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.1273, allocations: 20 kB / 415.8 MB, free: 0.582 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.945e-05/0.1274, allocations: 59.77 kB / 415.8 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.1276, allocations: 97.52 kB / 415.9 MB, free: 432 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.1282, allocations: 311.3 kB / 416.2 MB, free: 120 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1283, allocations: 0 / 416.2 MB, free: 120 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1283, allocations: 0 / 416.2 MB, free: 120 kB / 314.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1283, allocations: 4 kB / 416.2 MB, free: 116 kB / 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.001683/0.13, allocations: 0.5888 MB / 416.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.1301, allocations: 8.031 kB / 416.8 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.1303, allocations: 74.53 kB / 416.9 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.1304, allocations: 47.53 kB / 417 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.131, allocations: 274.2 kB / 417.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.1311, allocations: 28.98 kB / 417.3 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.1313, allocations: 43.91 kB / 417.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.1326, allocations: 398.1 kB / 417.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.1327, allocations: 3.906 kB / 417.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.005e-05/0.1328, allocations: 16 kB / 417.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.1328, allocations: 12 kB / 417.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.1339, allocations: 231.7 kB / 417.9 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004652/0.1385, allocations: 1.715 MB / 419.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009311/0.1395, allocations: 266.4 kB / 419.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003773/0.1399, allocations: 105.9 kB / 420 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.14, allocations: 0 / 420 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.1401, allocations: 46.5 kB / 420.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.865e-06/0.1401, allocations: 0 / 420.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.00151/0.1416, allocations: 277.3 kB / 420.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.1418, allocations: 213.6 kB / 420.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005682/0.1424, allocations: 275.2 kB / 420.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.1424, allocations: 29.7 kB / 420.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.1427, allocations: 243.3 kB / 421.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1429, allocations: 118.5 kB / 421.2 MB, free: 10.74 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.143, allocations: 8 kB / 421.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.1432, allocations: 350.8 kB / 421.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/0.1437, allocations: 101.2 kB / 421.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009575/0.1447, allocations: 440.8 kB / 422.1 MB, free: 9.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000707/0.1455, allocations: 164.2 kB / 422.2 MB, free: 9.531 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.1455, allocations: 4 kB / 422.2 MB, free: 9.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002021/0.1475, allocations: 0.532 MB / 422.8 MB, free: 8.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.1476, allocations: 12 kB / 422.8 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.1476, allocations: 12.5 kB / 422.8 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.182e-05/0.1477, allocations: 16 kB / 422.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.1489, allocations: 152.4 kB / 423 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.546e-05/0.149, allocations: 27.92 kB / 423 MB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007874/0.1498, allocations: 67.38 kB / 423.1 MB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/0.1499, allocations: 32 kB / 423.1 MB, free: 8.676 MB / 330.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.0004001/0.1503, allocations: 187.8 kB / 423.3 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.1507, allocations: 35.62 kB / 423.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.1509, allocations: 33.83 kB / 423.3 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.1509, allocations: 4 kB / 423.3 MB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.1509, allocations: 4 kB / 423.3 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1509, allocations: 4 kB / 423.3 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.154, allocations: 0.6436 MB / 424 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/0.1541, allocations: 7.984 kB / 424 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.1555, allocations: 87.89 kB / 424.1 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.737e-05/0.1555, allocations: 8.062 kB / 424.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.1556, allocations: 8 kB / 424.1 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.227e-05/0.1556, allocations: 7.984 kB / 424.1 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.1556, allocations: 4 kB / 424.1 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.1572, allocations: 0.8492 MB / 425 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.1575, allocations: 120.8 kB / 425.1 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1576, allocations: 8 kB / 425.1 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009098/0.1585, allocations: 15.98 kB / 425.1 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1587, allocations: 27.86 kB / 425.1 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.1587, allocations: 11.94 kB / 425.1 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003754/0.1591, allocations: 186 kB / 425.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1591, allocations: 4 kB / 425.3 MB, free: 6.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001775/0.1609, allocations: 95.84 kB / 425.4 MB, free: 6.219 MB / 330.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.001986/0.163, allocations: 1.386 MB / 426.8 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.1643, allocations: 294.1 kB / 427.1 MB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.1644, allocations: 0 / 427.1 MB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004433/0.1648, allocations: 101.1 kB / 427.2 MB, free: 4.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/0.1671, allocations: 60.75 kB / 427.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.1774, allocations: 3.278 MB / 430.5 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.1782, allocations: 0.807 MB / 431.3 MB, free: 16 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.2921/0.4703, allocations: 37.22 kB / 431.4 MB, free: 45.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.4707, allocations: 116.1 kB / 431.5 MB, free: 45.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.432e-06/0.4707, allocations: 0 / 431.5 MB, free: 45.13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03565/0.5063, allocations: 5.968 MB / 437.5 MB, free: 44.8 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.5066, allocations: 197.3 kB / 437.6 MB, free: 44.56 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.923/3.43, allocations: 0 / 437.6 MB, free: 44.56 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