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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.000985/0.0009849, allocations: 179.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.105/1.105, allocations: 194.5 MB / 211.6 MB, free: 3.035 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00161/0.00161, allocations: 117 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07113/0.07143, allocations: 44.49 MB / 355.1 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2126/0.2841, allocations: 76.72 MB / 431.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001566/0.2843, allocations: 77.52 kB / 431.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02486/0.3092, allocations: 11.87 MB / 443.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3092, allocations: 0 / 443.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.017e-05/0.3093, allocations: 24 kB / 443.7 MB, free: 3.234 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.001459/0.3107, allocations: 0.9099 MB / 444.7 MB, free: 2.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3108, allocations: 8.031 kB / 444.7 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.311, allocations: 94.88 kB / 444.8 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006814/0.3117, allocations: 0.5051 MB / 445.3 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.462e-05/0.3117, allocations: 66 kB / 445.3 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.3119, allocations: 92.53 kB / 445.4 MB, free: 1.684 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3132, allocations: 0.8294 MB / 446.2 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/0.3133, allocations: 3.906 kB / 446.2 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.706e-05/0.3133, allocations: 36 kB / 446.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.3133, allocations: 31.98 kB / 446.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00098/0.3143, allocations: 0.5157 MB / 446.8 MB, free: 400 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.3178, allocations: 3.059 MB / 449.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/0.3184, allocations: 307.1 kB / 450.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001977/0.3186, allocations: 251.3 kB / 450.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3187, allocations: 34.56 kB / 450.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 2.775e-06/0.3187, allocations: 0 / 450.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=37): time 0.00285/0.3215, allocations: 1.586 MB / 452.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.3216, allocations: 110.8 kB / 452.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.322, allocations: 288.8 kB / 452.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.322, allocations: 29.7 kB / 452.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.3224, allocations: 410.6 kB / 452.9 MB, free: 9.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.3225, allocations: 134 kB / 453 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.3225, allocations: 12 kB / 453 MB, free: 9.809 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3227, allocations: 357.2 kB / 453.4 MB, free: 9.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.3229, allocations: 125.1 kB / 453.5 MB, free: 9.332 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.3232, allocations: 277.1 kB / 453.8 MB, free: 8.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.3236, allocations: 177.5 kB / 453.9 MB, free: 8.816 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3236, allocations: 0 / 453.9 MB, free: 8.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008166/0.3244, allocations: 0.5024 MB / 454.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3244, allocations: 4 kB / 454.4 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3244, allocations: 8.312 kB / 454.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001964/0.3246, allocations: 36.83 kB / 454.5 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.3251, allocations: 123.8 kB / 454.6 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004085/0.3255, allocations: 0.5566 MB / 455.2 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.3257, allocations: 35.83 kB / 455.2 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.3258, allocations: 27.98 kB / 455.2 MB, free: 7.492 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (62): * Single equations (assignments): 61 * 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.0003461/0.3261, allocations: 222.4 kB / 455.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3263, allocations: 40.19 kB / 455.5 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.3269, allocations: 320 kB / 455.8 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3269, allocations: 4 kB / 455.8 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3269, allocations: 4 kB / 455.8 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.327, allocations: 7.922 kB / 455.8 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.3287, allocations: 1.104 MB / 456.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3287, allocations: 0 / 456.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004067/0.3291, allocations: 95.88 kB / 457 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001249/0.3292, allocations: 32.84 kB / 457 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.3293, allocations: 12.16 kB / 457 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003247/0.3296, allocations: 0.5499 MB / 457.6 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.3296, allocations: 7.938 kB / 457.6 MB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009941/0.3306, allocations: 0.8472 MB / 458.5 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3307, allocations: 112.6 kB / 458.6 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.087e-05/0.3308, allocations: 12 kB / 458.6 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.331, allocations: 15.98 kB / 458.6 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/0.3311, allocations: 23.97 kB / 458.6 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3311, allocations: 15.98 kB / 458.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002171/0.3314, allocations: 227.2 kB / 458.9 MB, free: 3.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3314, allocations: 0 / 458.9 MB, free: 3.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005951/0.332, allocations: 136 kB / 459 MB, free: 3.508 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * 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 (35): * Single equations (assignments): 34 * 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.0001812/0.3322, allocations: 123.1 kB / 459.1 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007107/0.3329, allocations: 351.6 kB / 459.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3329, allocations: 1.188 kB / 459.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003141/0.3332, allocations: 169.2 kB / 459.6 MB, free: 2.871 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.3337, allocations: 67.05 kB / 459.7 MB, free: 2.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.3365, allocations: 2.071 MB / 461.8 MB, free: 0.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.3371, allocations: 0.9547 MB / 462.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.3373, allocations: 49.12 kB / 462.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.285e-05/0.3373, allocations: 31.44 kB / 462.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3374, allocations: 0 / 462.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of Templates: time 0.008024/0.3454, allocations: 3.614 MB / 466.4 MB, free: 12.06 MB / 346.7 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)