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.0009178/0.0009178, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007804/0.007804, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.69/1.69, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0005405/0.0005408, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2761, allocations: 47.58 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006516/0.2827, allocations: 4.946 MB / 332 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00507/0.2878, allocations: 2.048 MB / 334 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.2892, allocations: 33.56 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.2898, allocations: 164.2 kB / 334.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007059/0.2905, allocations: 140.5 kB / 334.3 MB, free: 11.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.2917, allocations: 333.3 kB / 334.7 MB, free: 11.3 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.2929, allocations: 0.9536 MB / 335.6 MB, free: 10.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007889/0.2937, allocations: 0.5319 MB / 336.2 MB, free: 10.2 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.2941, allocations: 246.8 kB / 336.4 MB, free: 9.953 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.2944, allocations: 270.4 kB / 336.7 MB, free: 9.688 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.744e-05/0.2945, allocations: 28 kB / 336.7 MB, free: 9.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.2947, allocations: 95.91 kB / 336.8 MB, free: 9.566 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.2948, allocations: 123.4 kB / 336.9 MB, free: 9.445 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.2951, allocations: 379.6 kB / 337.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.2962, allocations: 1.056 MB / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2963, allocations: 0 / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2963, allocations: 0 / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.327e-05/0.2963, allocations: 0 / 338.3 MB, free: 8.008 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.001563/0.2979, allocations: 0.8852 MB / 339.2 MB, free: 7.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2979, allocations: 8.031 kB / 339.2 MB, free: 7.062 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.2981, allocations: 87.91 kB / 339.3 MB, free: 6.977 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006944/0.2988, allocations: 0.4948 MB / 339.8 MB, free: 6.441 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.484e-05/0.2988, allocations: 62.38 kB / 339.9 MB, free: 6.383 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.299, allocations: 92.28 kB / 340 MB, free: 6.293 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.3004, allocations: 0.8047 MB / 340.8 MB, free: 5.449 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/0.3005, allocations: 15.97 kB / 340.8 MB, free: 5.434 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.3006, allocations: 32 kB / 340.8 MB, free: 5.402 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/0.3006, allocations: 20 kB / 340.8 MB, free: 5.383 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009486/0.3015, allocations: 0.4957 MB / 341.3 MB, free: 4.891 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.3052, allocations: 2.903 MB / 344.2 MB, free: 1.855 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.3057, allocations: 227.4 kB / 344.4 MB, free: 1.625 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.3059, allocations: 104.8 kB / 344.5 MB, free: 1.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002595/0.3062, allocations: 255.3 kB / 344.8 MB, free: 1.215 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3063, allocations: 42.48 kB / 344.8 MB, free: 1.164 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.3063, allocations: 0 / 344.8 MB, free: 1.164 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002468/0.3087, allocations: 1.276 MB / 346.1 MB, free: 15.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.3088, allocations: 55.41 kB / 346.2 MB, free: 15.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.3091, allocations: 300.5 kB / 346.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.3092, allocations: 33.7 kB / 346.5 MB, free: 15.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.3094, allocations: 394.6 kB / 346.9 MB, free: 14.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.3095, allocations: 138.1 kB / 347 MB, free: 14.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.3096, allocations: 49.64 kB / 347.1 MB, free: 14.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3097, allocations: 350.7 kB / 347.4 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.3099, allocations: 113.1 kB / 347.5 MB, free: 14.33 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.3102, allocations: 258.5 kB / 347.8 MB, free: 14.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.3107, allocations: 388.6 kB / 348.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3107, allocations: 0 / 348.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006935/0.3114, allocations: 468.9 kB / 348.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.3115, allocations: 8 kB / 348.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3115, allocations: 4 kB / 348.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.3117, allocations: 33.41 kB / 348.7 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.3121, allocations: 115.8 kB / 348.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003939/0.3125, allocations: 0.56 MB / 349.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.3126, allocations: 16 kB / 349.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.3127, allocations: 24 kB / 349.4 MB, free: 12.32 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 (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.0002875/0.313, allocations: 221.6 kB / 349.6 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.3131, allocations: 35.69 kB / 349.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005969/0.3137, allocations: 326 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3137, allocations: 4 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3137, allocations: 0 / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3137, allocations: 3.984 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.3151, allocations: 1.03 MB / 351 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3151, allocations: 4.031 kB / 351 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003437/0.3155, allocations: 79.89 kB / 351.1 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001446/0.3156, allocations: 32.84 kB / 351.1 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.3157, allocations: 11.98 kB / 351.1 MB, free: 10.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003316/0.316, allocations: 0.5523 MB / 351.7 MB, free: 9.914 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.316, allocations: 0 / 351.7 MB, free: 9.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007558/0.3168, allocations: 0.5593 MB / 352.2 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.794e-05/0.3169, allocations: 100.7 kB / 352.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.3169, allocations: 12.08 kB / 352.3 MB, free: 9.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3171, allocations: 16 kB / 352.3 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.3171, allocations: 23.98 kB / 352.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.3172, allocations: 16 kB / 352.4 MB, free: 9.133 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.3174, allocations: 211 kB / 352.6 MB, free: 8.926 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.3174, allocations: 4 kB / 352.6 MB, free: 8.922 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005241/0.3179, allocations: 123.9 kB / 352.7 MB, free: 8.801 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 (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.0001833/0.3181, allocations: 115.2 kB / 352.8 MB, free: 8.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006337/0.3188, allocations: 312.3 kB / 353.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3188, allocations: 0 / 353.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.319, allocations: 141.1 kB / 353.3 MB, free: 8.238 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.3197, allocations: 62.09 kB / 353.3 MB, free: 8.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.3226, allocations: 2.085 MB / 355.4 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006377/0.3232, allocations: 0.921 MB / 356.3 MB, free: 5.098 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.3234, allocations: 51.33 kB / 356.4 MB, free: 5.047 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.846e-05/0.3235, allocations: 31.44 kB / 356.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3235, allocations: 3.938 kB / 356.4 MB, free: 5.012 MB / 286.1 MB Notification: Performance of Templates: time 0.008586/0.3321, allocations: 3.548 MB / 360 MB, free: 1.465 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)