Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0009409/0.0009409, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001076/0.001076, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.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.0007035/0.0007035, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2548, allocations: 47.59 MB / 326.5 MB, free: 1.508 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004949/0.2598, allocations: 4.654 MB / 331.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003638/0.2635, allocations: 1.959 MB / 333.1 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008784/0.2644, allocations: 34.12 kB / 333.1 MB, free: 12.26 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004001/0.2648, allocations: 149.7 kB / 333.3 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003939/0.2652, allocations: 136.3 kB / 333.4 MB, free: 12.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008148/0.266, allocations: 249.2 kB / 333.6 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.2673, allocations: 0.8928 MB / 334.5 MB, free: 11.29 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007871/0.2681, allocations: 424.3 kB / 335 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004409/0.2686, allocations: 228.4 kB / 335.2 MB, free: 10.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.2689, allocations: 270.5 kB / 335.4 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-05/0.269, allocations: 32 kB / 335.5 MB, free: 10.57 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.2693, allocations: 83.92 kB / 335.6 MB, free: 10.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.2694, allocations: 123.5 kB / 335.7 MB, free: 10.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.2696, allocations: 169.3 kB / 335.8 MB, free: 10.2 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008528/0.2704, allocations: 0.8778 MB / 336.7 MB, free: 9.316 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.2705, allocations: 0 / 336.7 MB, free: 9.316 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.2705, allocations: 7.938 kB / 336.7 MB, free: 9.309 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2705, allocations: 4 kB / 336.7 MB, free: 9.305 MB / 270.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.001308/0.2718, allocations: 0.8812 MB / 337.6 MB, free: 8.371 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.2719, allocations: 12.03 kB / 337.6 MB, free: 8.359 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.272, allocations: 86.97 kB / 337.7 MB, free: 8.273 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.2726, allocations: 497.6 kB / 338.2 MB, free: 7.742 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.2727, allocations: 62 kB / 338.3 MB, free: 7.684 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.2728, allocations: 83.91 kB / 338.3 MB, free: 7.602 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.2741, allocations: 0.8044 MB / 339.1 MB, free: 6.758 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.276e-05/0.2742, allocations: 3.906 kB / 339.1 MB, free: 6.754 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.224e-05/0.2742, allocations: 36 kB / 339.2 MB, free: 6.719 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.2743, allocations: 24 kB / 339.2 MB, free: 6.695 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009167/0.2752, allocations: 499.6 kB / 339.7 MB, free: 6.211 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.2788, allocations: 2.903 MB / 342.6 MB, free: 3.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005445/0.2793, allocations: 223.9 kB / 342.8 MB, free: 2.953 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.2795, allocations: 112.8 kB / 342.9 MB, free: 2.84 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002679/0.2798, allocations: 251.2 kB / 343.2 MB, free: 2.539 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.2798, allocations: 38.56 kB / 343.2 MB, free: 2.492 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 2.375e-06/0.2799, allocations: 0 / 343.2 MB, free: 2.492 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.00255/0.2824, allocations: 1.267 MB / 344.5 MB, free: 1.129 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.2825, allocations: 55.41 kB / 344.5 MB, free: 1.062 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.2828, allocations: 296.5 kB / 344.8 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.2828, allocations: 37.69 kB / 344.9 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.2831, allocations: 402.5 kB / 345.2 MB, free: 332 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2832, allocations: 134.1 kB / 345.4 MB, free: 196 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.787e-05/0.2832, allocations: 12 kB / 345.4 MB, free: 184 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2834, allocations: 346.8 kB / 345.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.2836, allocations: 109.1 kB / 345.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.2839, allocations: 254.5 kB / 346.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.2842, allocations: 147.7 kB / 346.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2842, allocations: 0 / 346.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000742/0.2849, allocations: 465 kB / 346.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.285, allocations: 8 kB / 346.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.285, allocations: 4 kB / 346.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.2852, allocations: 37.44 kB / 346.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003488/0.2855, allocations: 119.8 kB / 346.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003739/0.2859, allocations: 0.5485 MB / 347.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.2861, allocations: 16 kB / 347.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.2861, allocations: 24 kB / 347.4 MB, free: 14.03 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003167/0.2865, allocations: 225.7 kB / 347.7 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.2865, allocations: 35.53 kB / 347.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005956/0.2871, allocations: 330 kB / 348 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2872, allocations: 4 kB / 348 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2872, allocations: 0 / 348 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2872, allocations: 3.984 kB / 348 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.2886, allocations: 1.04 MB / 349.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2886, allocations: 0 / 349.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003447/0.289, allocations: 79.91 kB / 349.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.2891, allocations: 28.84 kB / 349.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.2891, allocations: 19.92 kB / 349.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003386/0.2895, allocations: 0.5484 MB / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.2895, allocations: 0 / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000729/0.2902, allocations: 0.5596 MB / 350.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.733e-05/0.2903, allocations: 108.6 kB / 350.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.2904, allocations: 8 kB / 350.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.2905, allocations: 8 kB / 350.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.35e-05/0.2906, allocations: 27.92 kB / 350.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.2906, allocations: 16 kB / 350.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.2908, allocations: 207.1 kB / 350.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2909, allocations: 0 / 350.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.2914, allocations: 124 kB / 350.8 MB, free: 10.5 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002056/0.2916, allocations: 111.3 kB / 350.9 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006161/0.2922, allocations: 312.4 kB / 351.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2922, allocations: 0 / 351.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002699/0.2925, allocations: 143.8 kB / 351.3 MB, free: 9.941 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.293, allocations: 62.09 kB / 351.4 MB, free: 9.883 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.2959, allocations: 2.007 MB / 353.4 MB, free: 7.832 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/0.2965, allocations: 0.9249 MB / 354.3 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.2966, allocations: 47.33 kB / 354.4 MB, free: 6.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.2967, allocations: 31.44 kB / 354.4 MB, free: 6.797 MB / 286.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2967, allocations: 0 / 354.4 MB, free: 6.797 MB / 286.1 MB Notification: Performance of Templates: time 0.00811/0.3048, allocations: 3.464 MB / 357.9 MB, free: 3.332 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)