Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.0009468/0.0009469, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0009417/0.0009418, allocations: 168.7 kB / 15.95 MB, free: 200 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.634/1.634, 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.0004624/0.0004625, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2703, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005493/0.2759, allocations: 4.659 MB / 331.1 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004078/0.28, allocations: 1.955 MB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.2811, allocations: 33.28 kB / 333.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.2815, allocations: 146.2 kB / 333.3 MB, free: 12.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004476/0.282, allocations: 148.3 kB / 333.4 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008959/0.2829, allocations: 244.9 kB / 333.6 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.2839, allocations: 0.8891 MB / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006326/0.2845, allocations: 427.5 kB / 335 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000371/0.2849, allocations: 236.2 kB / 335.2 MB, free: 10.74 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.2852, allocations: 266.6 kB / 335.4 MB, free: 10.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.2853, allocations: 28 kB / 335.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.2855, allocations: 79.98 kB / 335.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.2856, allocations: 127.5 kB / 335.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.2858, allocations: 173.3 kB / 335.8 MB, free: 10.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009711/0.2868, allocations: 0.8818 MB / 336.7 MB, free: 9.191 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2868, allocations: 0 / 336.7 MB, free: 9.191 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2868, allocations: 0 / 336.7 MB, free: 9.191 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.2868, allocations: 0 / 336.7 MB, free: 9.191 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.001256/0.2881, allocations: 0.889 MB / 337.6 MB, free: 8.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2881, allocations: 8.031 kB / 337.6 MB, free: 8.242 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.2883, allocations: 86.97 kB / 337.7 MB, free: 8.156 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.2889, allocations: 493.6 kB / 338.2 MB, free: 7.629 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.2889, allocations: 66 kB / 338.3 MB, free: 7.566 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.289, allocations: 91.91 kB / 338.3 MB, free: 7.477 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.2904, allocations: 0.7927 MB / 339.1 MB, free: 6.645 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.2905, allocations: 11.91 kB / 339.1 MB, free: 6.633 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-05/0.2906, allocations: 35.94 kB / 339.2 MB, free: 6.598 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.2906, allocations: 20 kB / 339.2 MB, free: 6.578 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008881/0.2915, allocations: 0.4918 MB / 339.7 MB, free: 6.09 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.2945, allocations: 2.895 MB / 342.6 MB, free: 3.066 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.295, allocations: 224 kB / 342.8 MB, free: 2.84 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.2952, allocations: 108.8 kB / 342.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002289/0.2954, allocations: 247.3 kB / 343.2 MB, free: 2.434 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.2955, allocations: 42.56 kB / 343.2 MB, free: 2.383 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.653e-06/0.2955, allocations: 3.938 kB / 343.2 MB, free: 2.379 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002265/0.2977, allocations: 1.271 MB / 344.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.2978, allocations: 55.41 kB / 344.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.2981, allocations: 300.5 kB / 344.8 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.2981, allocations: 33.7 kB / 344.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.2984, allocations: 394.5 kB / 345.2 MB, free: 220 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.2985, allocations: 138.1 kB / 345.4 MB, free: 80 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.2985, allocations: 12 kB / 345.4 MB, free: 68 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2987, allocations: 346.8 kB / 345.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.2989, allocations: 109.1 kB / 345.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.2992, allocations: 258.5 kB / 346.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.2995, allocations: 147.7 kB / 346.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2995, allocations: 0 / 346.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007234/0.3002, allocations: 461.2 kB / 346.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3002, allocations: 8 kB / 346.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3002, allocations: 4 kB / 346.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.3004, allocations: 36.78 kB / 346.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.3008, allocations: 112.4 kB / 346.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003951/0.3012, allocations: 0.5602 MB / 347.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.3014, allocations: 16 kB / 347.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.3014, allocations: 20 kB / 347.4 MB, free: 13.92 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.0003114/0.3018, allocations: 225.6 kB / 347.6 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.3018, allocations: 39.53 kB / 347.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005995/0.3024, allocations: 326.1 kB / 348 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3025, allocations: 4 kB / 348 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3025, allocations: 0 / 348 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3025, allocations: 3.984 kB / 348 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.3039, allocations: 1.04 MB / 349.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.309e-06/0.3039, allocations: 4 kB / 349.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.3043, allocations: 80.06 kB / 349.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.3044, allocations: 32.84 kB / 349.2 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.3045, allocations: 11.98 kB / 349.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003407/0.3048, allocations: 0.5484 MB / 349.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3048, allocations: 3.938 kB / 349.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.3056, allocations: 0.5479 MB / 350.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.135e-05/0.3057, allocations: 112.6 kB / 350.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.3057, allocations: 12 kB / 350.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.3059, allocations: 16 kB / 350.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.3059, allocations: 19.92 kB / 350.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.306, allocations: 16 kB / 350.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000208/0.3062, allocations: 207.1 kB / 350.7 MB, free: 10.51 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.884e-06/0.3062, allocations: 96 / 350.7 MB, free: 10.51 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005068/0.3067, allocations: 123.9 kB / 350.8 MB, free: 10.39 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.000166/0.3069, allocations: 111.2 kB / 350.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006015/0.3075, allocations: 320.6 kB / 351.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3075, allocations: 0 / 351.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3078, allocations: 139.8 kB / 351.3 MB, free: 9.824 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.3083, allocations: 53.41 kB / 351.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.311, allocations: 2.016 MB / 353.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005205/0.3115, allocations: 0.921 MB / 354.3 MB, free: 6.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.3117, allocations: 47.33 kB / 354.4 MB, free: 6.715 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.3117, allocations: 27.44 kB / 354.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3117, allocations: 4 kB / 354.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of Templates: time 0.008347/0.3201, allocations: 3.468 MB / 357.9 MB, free: 3.215 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)