Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009715/0.0009715, allocations: 87.88 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 176.7 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008387/0.0008386, allocations: 16 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1507, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006801/0.1575, allocations: 4.95 MB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004687/0.1623, allocations: 2.041 MB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.1642, allocations: 35.81 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008807/0.1651, allocations: 154.8 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001128/0.1662, allocations: 150.8 kB / 335.6 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.1676, allocations: 331.4 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.1691, allocations: 0.9508 MB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.1702, allocations: 0.5358 MB / 337.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000559/0.1708, allocations: 246.8 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000585/0.1714, allocations: 274.4 kB / 338 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.1715, allocations: 32 kB / 338 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.1718, allocations: 83.98 kB / 338.1 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.172, allocations: 131.3 kB / 338.2 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004399/0.1725, allocations: 375.7 kB / 338.6 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.1736, allocations: 1.055 MB / 339.6 MB, free: 8.371 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1737, allocations: 0 / 339.6 MB, free: 8.371 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1737, allocations: 0 / 339.6 MB, free: 8.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.1737, allocations: 0 / 339.6 MB, free: 8.371 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001755/0.1755, allocations: 0.8853 MB / 340.5 MB, free: 7.434 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.1756, allocations: 12.03 kB / 340.5 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001887/0.1757, allocations: 91.91 kB / 340.6 MB, free: 7.332 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000769/0.1765, allocations: 0.4947 MB / 341.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.1766, allocations: 66.38 kB / 341.2 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.1767, allocations: 88.28 kB / 341.3 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1782, allocations: 0.8087 MB / 342.1 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.1782, allocations: 7.844 kB / 342.1 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.1783, allocations: 36 kB / 342.1 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.1783, allocations: 24 kB / 342.1 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009362/0.1793, allocations: 0.4957 MB / 342.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003291/0.1826, allocations: 2.903 MB / 345.5 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.1831, allocations: 218.7 kB / 345.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.1833, allocations: 112.8 kB / 345.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002631/0.1836, allocations: 247.3 kB / 346.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.1837, allocations: 42.5 kB / 346.1 MB, free: 1.523 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.505e-06/0.1837, allocations: 0 / 346.1 MB, free: 1.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002313/0.186, allocations: 1.266 MB / 347.4 MB, free: 164 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.1861, allocations: 55.41 kB / 347.5 MB, free: 96 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.1864, allocations: 300.5 kB / 347.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.1864, allocations: 33.69 kB / 347.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.1867, allocations: 410.4 kB / 348.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1868, allocations: 138 kB / 348.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.1868, allocations: 45.69 kB / 348.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.187, allocations: 350.7 kB / 348.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1872, allocations: 109.1 kB / 348.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.1875, allocations: 258.5 kB / 349.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005081/0.188, allocations: 388.7 kB / 349.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.188, allocations: 4 kB / 349.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007006/0.1887, allocations: 460.9 kB / 349.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.1888, allocations: 8 kB / 349.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1888, allocations: 11.92 kB / 349.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.189, allocations: 37.44 kB / 350 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.1893, allocations: 111.8 kB / 350.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003957/0.1897, allocations: 0.5562 MB / 350.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.1899, allocations: 16.05 kB / 350.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/0.19, allocations: 23.98 kB / 350.7 MB, free: 12.69 MB / 302.1 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003059/0.1903, allocations: 217.8 kB / 350.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.1904, allocations: 39.53 kB / 350.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006031/0.191, allocations: 326 kB / 351.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.191, allocations: 7.938 kB / 351.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.191, allocations: 3.984 kB / 351.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.191, allocations: 4 kB / 351.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.1924, allocations: 1.025 MB / 352.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1924, allocations: 0 / 352.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.1928, allocations: 83.89 kB / 352.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.1929, allocations: 32.84 kB / 352.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.1929, allocations: 12 kB / 352.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003119/0.1932, allocations: 0.5446 MB / 352.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1933, allocations: 4.156 kB / 352.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007321/0.194, allocations: 0.5593 MB / 353.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.1941, allocations: 108.7 kB / 353.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.1941, allocations: 11.94 kB / 353.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.1943, allocations: 8 kB / 353.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.1943, allocations: 23.97 kB / 353.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.1944, allocations: 15.98 kB / 353.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.1946, allocations: 222.9 kB / 353.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1946, allocations: 0 / 353.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000498/0.1951, allocations: 116 kB / 354 MB, free: 9.168 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001811/0.1953, allocations: 111.2 kB / 354.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006062/0.1959, allocations: 308 kB / 354.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1959, allocations: 0 / 354.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.1962, allocations: 148.8 kB / 354.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.1968, allocations: 65.62 kB / 354.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.1998, allocations: 2.086 MB / 356.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.2003, allocations: 0.921 MB / 357.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.2005, allocations: 51.28 kB / 357.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.276e-05/0.2006, allocations: 27.44 kB / 357.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2006, allocations: 4 kB / 357.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of Templates: time 0.009461/0.2101, allocations: 3.561 MB / 361.3 MB, free: 1.824 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)