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.001331/0.001331, allocations: 85.72 kB / 16.31 MB, free: 6.453 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.001587/0.001587, allocations: 179.3 kB / 17.21 MB, free: 6.328 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.732/1.732, allocations: 205.4 MB / 223.4 MB, free: 5.801 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.0004736/0.0004738, allocations: 11.98 kB / 280.1 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2575, allocations: 47.59 MB / 327.7 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005169/0.2627, allocations: 4.65 MB / 332.4 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.2674, allocations: 1.955 MB / 334.3 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.2687, allocations: 38.53 kB / 334.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004466/0.2692, allocations: 149.6 kB / 334.5 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004226/0.2696, allocations: 144 kB / 334.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007573/0.2704, allocations: 253.5 kB / 334.9 MB, free: 11.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009962/0.2714, allocations: 0.8881 MB / 335.8 MB, free: 11.4 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006808/0.2721, allocations: 424.6 kB / 336.2 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000336/0.2724, allocations: 235 kB / 336.4 MB, free: 10.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.2728, allocations: 258.6 kB / 336.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.067e-05/0.2729, allocations: 32 kB / 336.7 MB, free: 10.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.2731, allocations: 87.91 kB / 336.8 MB, free: 10.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.2732, allocations: 115.5 kB / 336.9 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.2734, allocations: 173.3 kB / 337.1 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008179/0.2742, allocations: 0.8819 MB / 338 MB, free: 9.387 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2742, allocations: 0 / 338 MB, free: 9.387 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2742, allocations: 0 / 338 MB, free: 9.387 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.2743, allocations: 4 kB / 338 MB, free: 9.383 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.001334/0.2756, allocations: 0.8851 MB / 338.9 MB, free: 8.445 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2756, allocations: 8.031 kB / 338.9 MB, free: 8.438 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2758, allocations: 86.97 kB / 339 MB, free: 8.352 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006463/0.2764, allocations: 0.4937 MB / 339.4 MB, free: 7.812 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.256e-05/0.2765, allocations: 62 kB / 339.5 MB, free: 7.754 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.2766, allocations: 87.91 kB / 339.6 MB, free: 7.668 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.2781, allocations: 0.7966 MB / 340.4 MB, free: 6.832 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.2781, allocations: 7.906 kB / 340.4 MB, free: 6.824 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.311e-05/0.2782, allocations: 32 kB / 340.4 MB, free: 6.793 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.2782, allocations: 23.94 kB / 340.5 MB, free: 6.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009258/0.2791, allocations: 0.4957 MB / 340.9 MB, free: 6.277 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.2824, allocations: 2.899 MB / 343.8 MB, free: 3.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005506/0.283, allocations: 219.9 kB / 344.1 MB, free: 3.027 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.2832, allocations: 108.8 kB / 344.2 MB, free: 2.918 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000274/0.2835, allocations: 251.3 kB / 344.4 MB, free: 2.617 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.2835, allocations: 30.56 kB / 344.4 MB, free: 2.578 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 2.014e-06/0.2835, allocations: 0 / 344.4 MB, free: 2.578 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.00226/0.2858, allocations: 1.275 MB / 345.7 MB, free: 1.207 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.2858, allocations: 55.41 kB / 345.8 MB, free: 1.141 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.2862, allocations: 308.4 kB / 346.1 MB, free: 0.832 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.2862, allocations: 33.7 kB / 346.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.2864, allocations: 398.5 kB / 346.5 MB, free: 408 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.2866, allocations: 130.1 kB / 346.6 MB, free: 276 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.662e-05/0.2866, allocations: 12 kB / 346.6 MB, free: 264 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2867, allocations: 350.8 kB / 347 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2869, allocations: 105.1 kB / 347.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.2873, allocations: 254.5 kB / 347.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.2875, allocations: 147.7 kB / 347.5 MB, free: 15.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2875, allocations: 4 kB / 347.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007106/0.2883, allocations: 461 kB / 347.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2883, allocations: 8 kB / 347.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2883, allocations: 4 kB / 347.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.2885, allocations: 37.44 kB / 348 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003526/0.2888, allocations: 115.8 kB / 348.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004063/0.2893, allocations: 0.5524 MB / 348.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.2894, allocations: 16 kB / 348.7 MB, free: 14.13 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.2895, allocations: 20 kB / 348.7 MB, free: 14.11 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.000296/0.2898, allocations: 229.7 kB / 348.9 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.2899, allocations: 39.53 kB / 348.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006217/0.2905, allocations: 318 kB / 349.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.2905, allocations: 8.031 kB / 349.3 MB, free: 13.51 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.2905, allocations: 0 / 349.3 MB, free: 13.51 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.2905, allocations: 7.984 kB / 349.3 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.2919, allocations: 1.033 MB / 350.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.292, allocations: 4 kB / 350.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.2923, allocations: 79.84 kB / 350.4 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.2924, allocations: 32.84 kB / 350.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.2925, allocations: 11.98 kB / 350.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003267/0.2928, allocations: 0.5483 MB / 351 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2928, allocations: 4.031 kB / 351 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.2936, allocations: 0.548 MB / 351.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.042e-05/0.2936, allocations: 112.6 kB / 351.6 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.2937, allocations: 12 kB / 351.6 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.2939, allocations: 8 kB / 351.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.2939, allocations: 23.92 kB / 351.7 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.294, allocations: 12 kB / 351.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.2942, allocations: 211.2 kB / 351.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2942, allocations: 0 / 351.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.2947, allocations: 127.9 kB / 352 MB, free: 10.59 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.0001773/0.2949, allocations: 115.3 kB / 352.1 MB, free: 10.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.2955, allocations: 316.3 kB / 352.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2955, allocations: 0 / 352.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.2958, allocations: 139.8 kB / 352.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.2962, allocations: 62.16 kB / 352.6 MB, free: 9.965 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.2987, allocations: 2.015 MB / 354.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.2992, allocations: 0.921 MB / 355.6 MB, free: 6.957 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.2994, allocations: 47.34 kB / 355.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.2995, allocations: 31.44 kB / 355.7 MB, free: 6.875 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2995, allocations: 0 / 355.7 MB, free: 6.875 MB / 286.1 MB Notification: Performance of Templates: time 0.007863/0.3074, allocations: 3.46 MB / 359.1 MB, free: 3.414 MB / 286.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)