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.001303/0.001303, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.376/1.376, allocations: 205.1 MB / 222.4 MB, free: 4.559 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.001237/0.001238, allocations: 51.91 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2824, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007292/0.2898, allocations: 5.424 MB / 330.7 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005831/0.2957, allocations: 2.109 MB / 332.8 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.2971, allocations: 35.72 kB / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006177/0.2978, allocations: 208.8 kB / 333.1 MB, free: 11.63 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005527/0.2984, allocations: 171.3 kB / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.2995, allocations: 391.4 kB / 333.6 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.3008, allocations: 1 MB / 334.6 MB, free: 10.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000863/0.3017, allocations: 0.6053 MB / 335.2 MB, free: 9.957 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005255/0.3022, allocations: 346.7 kB / 335.6 MB, free: 9.617 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004123/0.3027, allocations: 354.4 kB / 335.9 MB, free: 9.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.3028, allocations: 92 kB / 336 MB, free: 9.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.3031, allocations: 155.9 kB / 336.2 MB, free: 9.027 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003047/0.3034, allocations: 199.4 kB / 336.3 MB, free: 8.832 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000437/0.3039, allocations: 434 kB / 336.8 MB, free: 8.406 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001487/0.3054, allocations: 1.146 MB / 337.9 MB, free: 7.258 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3054, allocations: 0 / 337.9 MB, free: 7.258 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3054, allocations: 0 / 337.9 MB, free: 7.258 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.3054, allocations: 4 kB / 337.9 MB, free: 7.254 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.001398/0.3068, allocations: 1.033 MB / 339 MB, free: 6.168 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3069, allocations: 8.031 kB / 339 MB, free: 6.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.3071, allocations: 87.91 kB / 339.1 MB, free: 6.074 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006012/0.3077, allocations: 0.4986 MB / 339.5 MB, free: 5.535 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.3078, allocations: 62.38 kB / 339.6 MB, free: 5.477 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.3079, allocations: 84.38 kB / 339.7 MB, free: 5.395 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.3091, allocations: 0.8047 MB / 340.5 MB, free: 4.551 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.384e-05/0.3092, allocations: 11.84 kB / 340.5 MB, free: 4.539 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.3093, allocations: 43.98 kB / 340.6 MB, free: 4.496 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.3093, allocations: 20 kB / 340.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000881/0.3102, allocations: 0.4918 MB / 341.1 MB, free: 3.988 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.3135, allocations: 2.883 MB / 343.9 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006007/0.3141, allocations: 230.7 kB / 344.2 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.3143, allocations: 104.7 kB / 344.3 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004152/0.3147, allocations: 251.3 kB / 344.5 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.3148, allocations: 34.5 kB / 344.6 MB, free: 296 kB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.3148, allocations: 0 / 344.6 MB, free: 296 kB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002492/0.3173, allocations: 1.261 MB / 345.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.3174, allocations: 55.41 kB / 345.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.3177, allocations: 296.6 kB / 346.2 MB, free: 14.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.3178, allocations: 33.7 kB / 346.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.3181, allocations: 402.5 kB / 346.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.3183, allocations: 134.1 kB / 346.7 MB, free: 14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.3184, allocations: 98.09 kB / 346.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.3186, allocations: 350.7 kB / 347.2 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.3189, allocations: 105.1 kB / 347.3 MB, free: 13.44 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.3192, allocations: 254.5 kB / 347.5 MB, free: 13.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005245/0.3197, allocations: 384.7 kB / 347.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3197, allocations: 0 / 347.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007113/0.3205, allocations: 465.1 kB / 348.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3205, allocations: 8 kB / 348.3 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.3205, allocations: 4 kB / 348.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.3207, allocations: 32.84 kB / 348.4 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003419/0.3211, allocations: 115.8 kB / 348.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004737/0.3215, allocations: 0.5566 MB / 349 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3217, allocations: 16 kB / 349.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.3218, allocations: 20 kB / 349.1 MB, free: 11.45 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.0002851/0.3221, allocations: 217.6 kB / 349.3 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.3221, allocations: 43.56 kB / 349.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006694/0.3228, allocations: 334 kB / 349.7 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3228, allocations: 4 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3228, allocations: 0 / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.3229, allocations: 3.984 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.3244, allocations: 1.023 MB / 350.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3245, allocations: 0 / 350.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.3248, allocations: 79.91 kB / 350.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.325, allocations: 28.84 kB / 350.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.325, allocations: 20.08 kB / 350.8 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003525/0.3254, allocations: 0.5563 MB / 351.4 MB, free: 9.031 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3254, allocations: 3.938 kB / 351.4 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007971/0.3262, allocations: 0.5476 MB / 351.9 MB, free: 8.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.3263, allocations: 108.6 kB / 352 MB, free: 8.316 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.3263, allocations: 8 kB / 352 MB, free: 8.309 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3265, allocations: 8 kB / 352 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.3266, allocations: 27.97 kB / 352.1 MB, free: 8.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.3266, allocations: 16 kB / 352.1 MB, free: 8.258 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.3268, allocations: 215 kB / 352.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.204e-06/0.3268, allocations: 0 / 352.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005099/0.3273, allocations: 123.9 kB / 352.4 MB, free: 7.926 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.0001787/0.3275, allocations: 111.3 kB / 352.5 MB, free: 7.809 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006465/0.3282, allocations: 327.5 kB / 352.9 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3282, allocations: 0 / 352.9 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.3284, allocations: 141.2 kB / 353 MB, free: 7.352 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005323/0.329, allocations: 69.36 kB / 353.1 MB, free: 7.285 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.3315, allocations: 1.587 MB / 354.6 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004788/0.332, allocations: 0.9171 MB / 355.6 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.3322, allocations: 47.33 kB / 355.6 MB, free: 4.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.3322, allocations: 31.44 kB / 355.6 MB, free: 4.629 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3322, allocations: 4 kB / 355.6 MB, free: 4.625 MB / 286.1 MB Notification: Performance of Templates: time 0.008867/0.3411, allocations: 3.739 MB / 359.4 MB, free: 0.8828 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)