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.001143/0.001144, allocations: 182 kB / 13.64 MB, free: 1.676 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.667/1.667, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.001643/0.001643, allocations: 128.6 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.421e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 44.51 MB / 349.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4408, allocations: 76.64 MB / 426.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.4411, allocations: 74.23 kB / 426.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02759/0.4687, allocations: 11.86 MB / 438 MB, free: 6.223 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4688, allocations: 0 / 438 MB, free: 6.223 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.735e-05/0.4689, allocations: 23.16 kB / 438 MB, free: 6.219 MB / 298.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.001786/0.4707, allocations: 0.8625 MB / 438.9 MB, free: 5.578 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.4707, allocations: 7.625 kB / 438.9 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.471, allocations: 93.25 kB / 439 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008216/0.4718, allocations: 0.5002 MB / 439.5 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/0.4719, allocations: 66.59 kB / 439.6 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.472, allocations: 91.97 kB / 439.6 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.4735, allocations: 0.8003 MB / 440.4 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.4736, allocations: 7.75 kB / 440.5 MB, free: 4.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.4737, allocations: 38.2 kB / 440.5 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.4737, allocations: 22.75 kB / 440.5 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008846/0.4746, allocations: 481.4 kB / 441 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.4776, allocations: 3.056 MB / 444 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.4781, allocations: 284.8 kB / 444.3 MB, free: 2.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.4783, allocations: 110 kB / 444.4 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.4784, allocations: 255.2 kB / 444.7 MB, free: 2.277 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.4785, allocations: 38.5 kB / 444.7 MB, free: 2.234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.424e-06/0.4785, allocations: 3.984 kB / 444.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.001878/0.4804, allocations: 1.414 MB / 446.1 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.4804, allocations: 106.8 kB / 446.2 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.4807, allocations: 293.1 kB / 446.5 MB, free: 460 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.4807, allocations: 36.83 kB / 446.6 MB, free: 420 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.4809, allocations: 408.4 kB / 447 MB, free: 80 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.481, allocations: 138.4 kB / 447.1 MB, free: 15.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.481, allocations: 7.062 kB / 447.1 MB, free: 15.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4812, allocations: 353.3 kB / 447.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.4814, allocations: 101.1 kB / 447.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.4817, allocations: 255.9 kB / 447.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.4819, allocations: 154.4 kB / 447.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4819, allocations: 0 / 447.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007038/0.4826, allocations: 465.2 kB / 448.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.4827, allocations: 8 kB / 448.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.4827, allocations: 4 kB / 448.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001952/0.4829, allocations: 45.62 kB / 448.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.4833, allocations: 123.1 kB / 448.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004451/0.4838, allocations: 0.5526 MB / 449.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.484, allocations: 34.22 kB / 449.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.4841, allocations: 19.31 kB / 449.2 MB, free: 14.05 MB / 314.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 () * 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.0001189/0.4842, allocations: 139 kB / 449.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.4843, allocations: 39.53 kB / 449.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000509/0.4848, allocations: 277.8 kB / 449.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4849, allocations: 4 kB / 449.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.4849, allocations: 4 kB / 449.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4849, allocations: 7.984 kB / 449.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.4864, allocations: 1.073 MB / 450.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4865, allocations: 8.031 kB / 450.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.4869, allocations: 87.39 kB / 450.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001305/0.487, allocations: 32.41 kB / 450.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.487, allocations: 11.12 kB / 450.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004015/0.4875, allocations: 0.5547 MB / 451.4 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4875, allocations: 4.062 kB / 451.4 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008761/0.4884, allocations: 0.7817 MB / 452.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4885, allocations: 112.6 kB / 452.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.4885, allocations: 11.25 kB / 452.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.4888, allocations: 19.92 kB / 452.3 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.4889, allocations: 27.69 kB / 452.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.4889, allocations: 19.48 kB / 452.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002291/0.4892, allocations: 225.6 kB / 452.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4892, allocations: 3.938 kB / 452.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006065/0.4898, allocations: 134.1 kB / 452.7 MB, free: 10.84 MB / 314.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 () * 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.0002245/0.49, allocations: 134.4 kB / 452.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006015/0.4906, allocations: 304 kB / 453.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4906, allocations: 0 / 453.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.4909, allocations: 152.7 kB / 453.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.4915, allocations: 56.53 kB / 453.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.4939, allocations: 1.384 MB / 454.7 MB, free: 8.992 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/0.4945, allocations: 0.9503 MB / 455.7 MB, free: 8.027 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.4947, allocations: 47.38 kB / 455.7 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.4948, allocations: 31.44 kB / 455.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4948, allocations: 4 kB / 455.8 MB, free: 7.941 MB / 314.7 MB Notification: Performance of Templates: time 0.009337/0.5041, allocations: 3.626 MB / 459.4 MB, free: 4.332 MB / 314.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)