Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_ForUsersGuide_Directions",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.009728/0.009728, allocations: 163.8 kB / 15.12 MB, free: 5.957 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.945/1.945, allocations: 170.8 MB / 186.6 MB, free: 1.113 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.00184/0.00184, allocations: 113.9 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.5076/0.5076, allocations: 38.05 MB / 303.7 MB, free: 42.35 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000758/0.0007585, allocations: 8 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1089, allocations: 48.72 MB / 411.7 MB, free: 4.691 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004119/0.1131, allocations: 2.337 MB / 414 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1148, allocations: 0.6939 MB / 414.7 MB, free: 1.641 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.1151, allocations: 11.94 kB / 414.7 MB, free: 1.629 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.688e-05/0.1152, allocations: 43.62 kB / 414.8 MB, free: 1.586 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000384/0.1156, allocations: 99.16 kB / 414.9 MB, free: 1.488 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.116, allocations: 67.92 kB / 415 MB, free: 1.422 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006234/0.1166, allocations: 422.4 kB / 415.4 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.1169, allocations: 145.4 kB / 415.5 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002665/0.1172, allocations: 143.4 kB / 415.6 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003022/0.1175, allocations: 159.2 kB / 415.8 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.473e-05/0.1176, allocations: 20 kB / 415.8 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.353e-05/0.1177, allocations: 23.94 kB / 415.8 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.1178, allocations: 59.77 kB / 415.9 MB, free: 476 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1179, allocations: 93.52 kB / 416 MB, free: 376 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005041/0.1184, allocations: 327.3 kB / 416.3 MB, free: 48 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1185, allocations: 0 / 416.3 MB, free: 48 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1185, allocations: 0 / 416.3 MB, free: 48 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1185, allocations: 4 kB / 416.3 MB, free: 44 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001351/0.1199, allocations: 0.6121 MB / 416.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.1199, allocations: 12.03 kB / 416.9 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.12, allocations: 78.53 kB / 417 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1202, allocations: 43.44 kB / 417.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.1206, allocations: 291.1 kB / 417.3 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.623e-05/0.1207, allocations: 29 kB / 417.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.048e-05/0.1208, allocations: 40 kB / 417.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.1218, allocations: 385 kB / 417.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1219, allocations: 3.906 kB / 417.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.1219, allocations: 16 kB / 417.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1219, allocations: 8 kB / 417.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.1228, allocations: 263.7 kB / 418.1 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.1254, allocations: 1.132 MB / 419.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000921/0.1263, allocations: 351.5 kB / 419.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005219/0.1269, allocations: 174.5 kB / 419.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/0.1269, allocations: 8.75 kB / 419.7 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.127, allocations: 42.48 kB / 419.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.467e-06/0.127, allocations: 0 / 419.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.00618/0.1332, allocations: 2.474 MB / 422.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/0.1333, allocations: 106.8 kB / 422.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/0.1337, allocations: 250.7 kB / 422.6 MB, free: 9.242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.1338, allocations: 41.64 kB / 422.6 MB, free: 9.195 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.1339, allocations: 184.6 kB / 422.8 MB, free: 9.012 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.1342, allocations: 201 kB / 423 MB, free: 8.812 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.1343, allocations: 8 kB / 423 MB, free: 8.805 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1344, allocations: 350.8 kB / 423.4 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000466/0.1349, allocations: 141 kB / 423.5 MB, free: 8.316 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.1355, allocations: 227.8 kB / 423.7 MB, free: 8.059 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.1361, allocations: 171.9 kB / 423.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1361, allocations: 0 / 423.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001789/0.1379, allocations: 0.5577 MB / 424.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.138, allocations: 11.94 kB / 424.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.138, allocations: 4 kB / 424.5 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006308/0.1386, allocations: 126.5 kB / 424.6 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007347/0.1394, allocations: 95.88 kB / 424.7 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006037/0.1454, allocations: 4.68 MB / 429.4 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.1459, allocations: 23.98 kB / 429.4 MB, free: 1.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.146, allocations: 24.06 kB / 429.4 MB, free: 1.953 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00034/0.1463, allocations: 163.3 kB / 429.6 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.1465, allocations: 35.53 kB / 429.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.1466, allocations: 50.17 kB / 429.6 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.1467, allocations: 7.953 kB / 429.7 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/0.1467, allocations: 4 kB / 429.7 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.1467, allocations: 11.98 kB / 429.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.1501, allocations: 1.342 MB / 431 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.1501, allocations: 0 / 431 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000843/0.151, allocations: 99.88 kB / 431.1 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.1515, allocations: 98.55 kB / 431.2 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.1516, allocations: 19.95 kB / 431.2 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3128/0.4643, allocations: 4.101 MB / 435.3 MB, free: 41.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4644, allocations: 1.922 kB / 435.3 MB, free: 41.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.4666, allocations: 0.931 MB / 436.3 MB, free: 41.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.4669, allocations: 137.8 kB / 436.4 MB, free: 41.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.467, allocations: 14.73 kB / 436.4 MB, free: 41.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.4675, allocations: 19.36 kB / 436.4 MB, free: 41.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.4676, allocations: 48.34 kB / 436.5 MB, free: 41.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.4677, allocations: 18.7 kB / 436.5 MB, free: 41.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002167/0.4679, allocations: 177.2 kB / 436.7 MB, free: 41.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4679, allocations: 0 / 436.7 MB, free: 41.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009885/0.4689, allocations: 120.2 kB / 436.8 MB, free: 41.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0023/0.4712, allocations: 1.487 MB / 438.3 MB, free: 40.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.4731, allocations: 0.7685 MB / 439 MB, free: 40.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4732, allocations: 0 / 439 MB, free: 40.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.4744, allocations: 0.5883 MB / 439.6 MB, free: 39.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009922/0.4754, allocations: 59.88 kB / 439.7 MB, free: 39.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006379/0.4818, allocations: 2.7 MB / 442.4 MB, free: 38.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.4824, allocations: 0.832 MB / 443.2 MB, free: 37.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002738/0.4827, allocations: 30.88 kB / 443.3 MB, free: 37.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/0.483, allocations: 129.9 kB / 443.4 MB, free: 37.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.483, allocations: 4.453 kB / 443.4 MB, free: 37.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04401/0.527, allocations: 7.457 MB / 450.8 MB, free: 37.23 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/0.5274, allocations: 206.1 kB / 451 MB, free: 37 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/3.543, allocations: 0 / 451 MB, free: 37 MB / 330.7 MB "" Variables in the reference:time,J2.phi,J2.w,J3.phi,J3.w,J5.phi,J5.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,J3.J,J3.a,J3.flange_a.phi,J3.flange_a.tau,J3.flange_b.phi,J3.flange_b.tau,J3.phi,J3.stateSelect,J3.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,J5.J,J5.a,J5.flange_a.phi,J5.flange_a.tau,J5.flange_b.phi,J5.flange_b.tau,J5.phi,J5.stateSelect,J5.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(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(J3.phi),der(J3.w),der(J4.phi),der(J4.w),der(J5.phi),der(J5.w),der(J6.phi),der(J6.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(der(gear1.phi_a)),der(der(gear1.phi_b)),der(der(gear2.phi_a)),der(der(gear2.phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear1.phi_a),der(gear1.phi_b),der(gear2.phi_a),der(gear2.phi_b),fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,fixed3.flange.phi,fixed3.flange.tau,fixed3.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,gear1.flange_a.phi,gear1.flange_a.tau,gear1.flange_b.phi,gear1.flange_b.tau,gear1.phi_a,gear1.phi_b,gear1.phi_support,gear1.ratio,gear1.support.phi,gear1.support.tau,gear1.useSupport,gear2.flange_a.phi,gear2.flange_a.tau,gear2.flange_b.phi,gear2.flange_b.tau,gear2.phi_a,gear2.phi_b,gear2.phi_support,gear2.ratio,gear2.support.phi,gear2.support.tau,gear2.useSupport,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,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,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport,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