Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01638/0.01639, allocations: 176.3 kB / 15.13 MB, free: 5.961 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.068/2.068, allocations: 194.5 MB / 210.3 MB, free: 7.793 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.001776/0.001775, allocations: 108.1 kB / 255.6 MB, free: 10.41 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.254/0.254, allocations: 40.01 MB / 340.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006461/0.0006464, allocations: 13.52 kB / 406.3 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1234, allocations: 54.88 MB / 461.1 MB, free: 3.234 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004583/0.128, allocations: 2.167 MB / 463.3 MB, free: 1.043 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.1307, allocations: 0.6441 MB / 464 MB, free: 404 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003369/0.1311, allocations: 11.88 kB / 464 MB, free: 392 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.1312, allocations: 27.77 kB / 464 MB, free: 364 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004205/0.1317, allocations: 91.3 kB / 464.1 MB, free: 272 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1321, allocations: 59.88 kB / 464.1 MB, free: 212 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006026/0.1327, allocations: 310.6 kB / 464.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.133, allocations: 61.58 kB / 464.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.1333, allocations: 107.6 kB / 464.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002983/0.1336, allocations: 111.5 kB / 464.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.1337, allocations: 12 kB / 464.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.1338, allocations: 16 kB / 464.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.16e-05/0.1339, allocations: 43.78 kB / 464.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.134, allocations: 73.58 kB / 464.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004392/0.1345, allocations: 215.4 kB / 465.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1345, allocations: 4 kB / 465.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1345, allocations: 3.938 kB / 465.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1345, allocations: 0 / 465.1 MB, free: 15.26 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.001601/0.1362, allocations: 0.5417 MB / 465.6 MB, free: 14.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.1362, allocations: 8.031 kB / 465.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.1364, allocations: 58.55 kB / 465.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.1365, allocations: 35.62 kB / 465.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.1371, allocations: 258.3 kB / 466 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.1372, allocations: 24.56 kB / 466 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1373, allocations: 27.91 kB / 466 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.1384, allocations: 289.9 kB / 466.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.1384, allocations: 7.984 kB / 466.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.1385, allocations: 8 kB / 466.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.1385, allocations: 8 kB / 466.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.1396, allocations: 195.8 kB / 466.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003449/0.1431, allocations: 1.329 MB / 467.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009413/0.1441, allocations: 254.4 kB / 468.1 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004929/0.1446, allocations: 103.4 kB / 468.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.827e-05/0.1447, allocations: 12.12 kB / 468.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.1447, allocations: 34.56 kB / 468.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.927e-06/0.1447, allocations: 0 / 468.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.005561/0.1503, allocations: 1.628 MB / 469.9 MB, free: 9.969 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.1505, allocations: 132.5 kB / 470 MB, free: 9.809 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.1509, allocations: 225 kB / 470.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.151, allocations: 33.7 kB / 470.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.1512, allocations: 176.2 kB / 470.4 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.1514, allocations: 118.3 kB / 470.5 MB, free: 9.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.1514, allocations: 12 kB / 470.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.1517, allocations: 334.8 kB / 470.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.1523, allocations: 116.8 kB / 471 MB, free: 8.785 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007706/0.1531, allocations: 241.5 kB / 471.2 MB, free: 8.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.1539, allocations: 148.2 kB / 471.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1539, allocations: 0 / 471.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00189/0.1558, allocations: 412.9 kB / 471.8 MB, free: 7.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.1559, allocations: 8 kB / 471.8 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.1559, allocations: 11.89 kB / 471.8 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.156, allocations: 8 kB / 471.8 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009792/0.157, allocations: 108.1 kB / 471.9 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/0.157, allocations: 11.94 kB / 471.9 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.1576, allocations: 31.89 kB / 472 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.1577, allocations: 23.98 kB / 472 MB, free: 7.738 MB / 314.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.0003076/0.158, allocations: 146.8 kB / 472.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.1582, allocations: 27.72 kB / 472.1 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.1584, allocations: 33.7 kB / 472.2 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.1584, allocations: 11.95 kB / 472.2 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.1584, allocations: 4 kB / 472.2 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.1585, allocations: 0 / 472.2 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.1618, allocations: 1.013 MB / 473.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.1619, allocations: 4 kB / 473.2 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009867/0.1629, allocations: 91.94 kB / 473.3 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/0.1629, allocations: 4 kB / 473.3 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-05/0.163, allocations: 4 kB / 473.3 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.163, allocations: 4 kB / 473.3 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.163, allocations: 4 kB / 473.3 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.1654, allocations: 0.764 MB / 474.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.1656, allocations: 108.8 kB / 474.2 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.409e-05/0.1657, allocations: 4.062 kB / 474.2 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007899/0.1665, allocations: 23.98 kB / 474.2 MB, free: 5.383 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.1666, allocations: 27.91 kB / 474.2 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.1667, allocations: 11.98 kB / 474.3 MB, free: 5.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002852/0.167, allocations: 160.4 kB / 474.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.167, allocations: 0 / 474.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001159/0.1682, allocations: 68 kB / 474.5 MB, free: 5.121 MB / 314.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.002796/0.171, allocations: 1.305 MB / 475.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.1726, allocations: 292.8 kB / 476.1 MB, free: 3.492 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.1726, allocations: 0 / 476.1 MB, free: 3.492 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007429/0.1734, allocations: 144.7 kB / 476.2 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.1749, allocations: 44.72 kB / 476.3 MB, free: 3.305 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007229/0.1822, allocations: 2.195 MB / 478.5 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005906/0.1828, allocations: 0.7761 MB / 479.2 MB, free: 180 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.1832, allocations: 34.95 kB / 479.3 MB, free: 148 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.1835, allocations: 91.41 kB / 479.4 MB, free: 60 kB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1835, allocations: 0 / 479.4 MB, free: 60 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.2134, allocations: 4.774 MB / 484.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/0.2137, allocations: 168 kB / 484.3 MB, free: 11.12 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.005/3.218, allocations: 0 / 484.3 MB, free: 11.12 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