Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestSpeed",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.009514/0.00952, allocations: 162.3 kB / 15.12 MB, free: 6.035 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.772/1.772, 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.001744/0.001744, allocations: 106.8 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.4659/0.4659, allocations: 38.05 MB / 303.7 MB, free: 42.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006015/0.000602, allocations: 16 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1257, allocations: 48.71 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003876/0.1297, allocations: 2.15 MB / 413.8 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1315, allocations: 0.6355 MB / 414.5 MB, free: 1.906 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1318, allocations: 4 kB / 414.5 MB, free: 1.902 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.095e-05/0.1319, allocations: 31.7 kB / 414.5 MB, free: 1.871 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.1322, allocations: 95.3 kB / 414.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.1326, allocations: 51.94 kB / 414.7 MB, free: 1.727 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.1331, allocations: 318.5 kB / 415 MB, free: 1.414 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1333, allocations: 65.56 kB / 415 MB, free: 1.352 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.1336, allocations: 107.6 kB / 415.1 MB, free: 1.246 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.1339, allocations: 123.3 kB / 415.3 MB, free: 1.125 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.1339, allocations: 12 kB / 415.3 MB, free: 1.113 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.173e-05/0.134, allocations: 12 kB / 415.3 MB, free: 1.102 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.933e-05/0.1341, allocations: 39.84 kB / 415.3 MB, free: 1.062 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.1342, allocations: 73.52 kB / 415.4 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.1345, allocations: 223.6 kB / 415.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1345, allocations: 0 / 415.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1346, allocations: 0 / 415.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1346, allocations: 0 / 415.6 MB, free: 0.7656 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001321/0.1359, allocations: 0.5456 MB / 416.2 MB, free: 176 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.136, allocations: 12.03 kB / 416.2 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.722e-05/0.1361, allocations: 62.48 kB / 416.2 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.1362, allocations: 35.58 kB / 416.3 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.1367, allocations: 258.4 kB / 416.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.1367, allocations: 20.56 kB / 416.5 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-05/0.1368, allocations: 27.91 kB / 416.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007773/0.1376, allocations: 285.9 kB / 416.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.1376, allocations: 4 kB / 416.8 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.1377, allocations: 8 kB / 416.9 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.1377, allocations: 12 kB / 416.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007421/0.1385, allocations: 195.8 kB / 417.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.1411, allocations: 1.337 MB / 418.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.1419, allocations: 246.5 kB / 418.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.1424, allocations: 111.3 kB / 418.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.1424, allocations: 8 kB / 418.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.1425, allocations: 42.55 kB / 418.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 3.296e-06/0.1425, allocations: 0 / 418.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.005526/0.148, allocations: 1.615 MB / 420.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.1482, allocations: 144.4 kB / 420.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.1485, allocations: 221 kB / 420.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.1486, allocations: 29.7 kB / 420.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.1487, allocations: 184.2 kB / 421 MB, free: 10.85 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.1489, allocations: 115.5 kB / 421.1 MB, free: 10.74 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.1489, allocations: 8 kB / 421.1 MB, free: 10.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1491, allocations: 342.8 kB / 421.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.1496, allocations: 112.8 kB / 421.5 MB, free: 10.28 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.1501, allocations: 249.5 kB / 421.8 MB, free: 9.973 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005433/0.1507, allocations: 143.8 kB / 421.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1507, allocations: 4 kB / 421.9 MB, free: 9.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001399/0.1521, allocations: 413.4 kB / 422.3 MB, free: 9.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.1522, allocations: 8.094 kB / 422.3 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.1522, allocations: 8 kB / 422.3 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.155e-05/0.1522, allocations: 8 kB / 422.4 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007167/0.153, allocations: 99.88 kB / 422.5 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.654e-05/0.153, allocations: 15.92 kB / 422.5 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.1534, allocations: 35.98 kB / 422.5 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.1535, allocations: 19.95 kB / 422.5 MB, free: 9.227 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002231/0.1537, allocations: 154.7 kB / 422.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1539, allocations: 31.56 kB / 422.7 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.36e-05/0.154, allocations: 37.7 kB / 422.7 MB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.154, allocations: 4 kB / 422.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.154, allocations: 0 / 422.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.154, allocations: 7.984 kB / 422.8 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.1564, allocations: 1.005 MB / 423.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.1565, allocations: 4 kB / 423.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007336/0.1572, allocations: 91.83 kB / 423.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.1572, allocations: 0 / 423.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.1573, allocations: 8 kB / 423.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.672e-05/0.1573, allocations: 12 kB / 423.9 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1573, allocations: 0 / 423.9 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.1591, allocations: 0.7603 MB / 424.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.1593, allocations: 116.8 kB / 424.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.1594, allocations: 11.94 kB / 424.8 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004824/0.1599, allocations: 27.98 kB / 424.8 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.16, allocations: 27.95 kB / 424.8 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.16, allocations: 12.25 kB / 424.8 MB, free: 6.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1603, allocations: 156.5 kB / 425 MB, free: 6.652 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1603, allocations: 0 / 425 MB, free: 6.652 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007026/0.161, allocations: 68 kB / 425 MB, free: 6.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.002072/0.1631, allocations: 1.318 MB / 426.4 MB, free: 5.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.1643, allocations: 296.5 kB / 426.7 MB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1644, allocations: 0 / 426.7 MB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.1649, allocations: 148 kB / 426.8 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009871/0.1659, allocations: 46.5 kB / 426.8 MB, free: 4.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005562/0.1715, allocations: 2.194 MB / 429 MB, free: 2.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.1721, allocations: 0.7808 MB / 429.8 MB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002935/0.1724, allocations: 34.95 kB / 429.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.1726, allocations: 91.41 kB / 429.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.1727, allocations: 0 / 429.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2928/0.4655, allocations: 4.765 MB / 434.7 MB, free: 46.21 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.4658, allocations: 167 kB / 434.9 MB, free: 45.97 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/3.261, allocations: 0 / 434.9 MB, free: 45.97 MB / 330.7 MB "" Variables in the reference:time,speed1.phi,speed1.w,speed2.phi,speed3.s,speed3.v,speed4.s Variables in the result:der(inertia2.w),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(speed1.phi),der(speed1.w),der(speed2.phi),der(speed3.s),der(speed3.v),der(speed4.s),der(speed4.v),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,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,sine4.amplitude,sine4.freqHz,sine4.offset,sine4.phase,sine4.startTime,sine4.y,speed1.a,speed1.exact,speed1.f_crit,speed1.flange.phi,speed1.flange.tau,speed1.phi,speed1.phi_support,speed1.useSupport,speed1.w,speed1.w_crit,speed1.w_ref,speed2.a,speed2.exact,speed2.f_crit,speed2.flange.phi,speed2.flange.tau,speed2.phi,speed2.phi_support,speed2.useSupport,speed2.w,speed2.w_crit,speed2.w_ref,speed3.a,speed3.exact,speed3.f_crit,speed3.flange.f,speed3.flange.s,speed3.s,speed3.s_support,speed3.useSupport,speed3.v,speed3.v_ref,speed3.w_crit,speed4.a,speed4.exact,speed4.f_crit,speed4.flange.f,speed4.flange.s,speed4.s,speed4.s_support,speed4.useSupport,speed4.v,speed4.v_ref,speed4.w_crit,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time