Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001395/0.001395, allocations: 108 kB / 15.61 MB, free: 152 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.001273/0.001273, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.528/1.528, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001223/0.001223, allocations: 51.94 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2596, allocations: 46.63 MB / 325.3 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008003/0.2677, allocations: 5.411 MB / 330.7 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004665/0.2724, allocations: 2.113 MB / 332.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.2736, allocations: 36.03 kB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005653/0.2742, allocations: 205.1 kB / 333.1 MB, free: 11.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005517/0.2748, allocations: 175.1 kB / 333.2 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009911/0.2758, allocations: 387.5 kB / 333.6 MB, free: 11.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.2769, allocations: 1.004 MB / 334.6 MB, free: 10.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008048/0.2777, allocations: 0.6015 MB / 335.2 MB, free: 9.953 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004184/0.2781, allocations: 346.8 kB / 335.6 MB, free: 9.613 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.2785, allocations: 354.4 kB / 335.9 MB, free: 9.266 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.2786, allocations: 92 kB / 336 MB, free: 9.176 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.2789, allocations: 155.9 kB / 336.1 MB, free: 9.023 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2791, allocations: 203.4 kB / 336.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.2794, allocations: 430 kB / 336.8 MB, free: 8.402 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.2805, allocations: 1.15 MB / 337.9 MB, free: 7.25 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2805, allocations: 0 / 337.9 MB, free: 7.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2805, allocations: 0 / 337.9 MB, free: 7.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2805, allocations: 0 / 337.9 MB, free: 7.25 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.001564/0.2821, allocations: 1.03 MB / 338.9 MB, free: 6.168 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2822, allocations: 12.03 kB / 339 MB, free: 6.156 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.2823, allocations: 87.91 kB / 339 MB, free: 6.07 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.2829, allocations: 0.4985 MB / 339.5 MB, free: 5.531 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.756e-05/0.283, allocations: 62.38 kB / 339.6 MB, free: 5.473 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.2831, allocations: 88.31 kB / 339.7 MB, free: 5.387 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.2844, allocations: 0.8047 MB / 340.5 MB, free: 4.543 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.2845, allocations: 11.89 kB / 340.5 MB, free: 4.531 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.2845, allocations: 36 kB / 340.5 MB, free: 4.496 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.2846, allocations: 20 kB / 340.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009048/0.2855, allocations: 0.4957 MB / 341.1 MB, free: 3.984 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003331/0.2888, allocations: 2.895 MB / 344 MB, free: 0.957 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.2894, allocations: 226.7 kB / 344.2 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.2896, allocations: 104.8 kB / 344.3 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003761/0.29, allocations: 251.3 kB / 344.5 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.2901, allocations: 38.55 kB / 344.6 MB, free: 280 kB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.403e-06/0.2901, allocations: 0 / 344.6 MB, free: 280 kB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002388/0.2925, allocations: 1.249 MB / 345.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.2925, allocations: 55.41 kB / 345.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.2928, allocations: 300.5 kB / 346.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2929, allocations: 33.7 kB / 346.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.2931, allocations: 406.4 kB / 346.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.2932, allocations: 138.1 kB / 346.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.2934, allocations: 86.16 kB / 346.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.2935, allocations: 354.7 kB / 347.1 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.2937, allocations: 105.1 kB / 347.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.294, allocations: 250.5 kB / 347.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.2945, allocations: 392.6 kB / 347.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2946, allocations: 0 / 347.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006958/0.2953, allocations: 457.3 kB / 348.3 MB, free: 12.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2953, allocations: 8 kB / 348.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.2953, allocations: 4 kB / 348.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002117/0.2955, allocations: 36.78 kB / 348.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.2959, allocations: 111.9 kB / 348.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004061/0.2963, allocations: 0.5565 MB / 349 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.2965, allocations: 16 kB / 349.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.2965, allocations: 23.94 kB / 349.1 MB, free: 11.44 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.0002763/0.2968, allocations: 221.6 kB / 349.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.258e-05/0.2969, allocations: 39.53 kB / 349.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005895/0.2975, allocations: 330 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2975, allocations: 4 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2975, allocations: 0 / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.2975, allocations: 3.984 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.2988, allocations: 1.031 MB / 350.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2989, allocations: 0 / 350.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.2992, allocations: 75.91 kB / 350.8 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.2993, allocations: 36.83 kB / 350.8 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.2994, allocations: 8 kB / 350.8 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000352/0.2997, allocations: 0.5603 MB / 351.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2997, allocations: 0 / 351.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007712/0.3005, allocations: 0.5437 MB / 351.9 MB, free: 8.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.458e-05/0.3006, allocations: 112.6 kB / 352 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.3007, allocations: 12 kB / 352 MB, free: 8.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3008, allocations: 8 kB / 352 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.953e-05/0.3009, allocations: 23.97 kB / 352.1 MB, free: 8.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.3009, allocations: 8 kB / 352.1 MB, free: 8.262 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3011, allocations: 222.9 kB / 352.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.004e-06/0.3011, allocations: 96 / 352.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004902/0.3016, allocations: 123.9 kB / 352.4 MB, free: 7.922 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.0001874/0.3018, allocations: 107.2 kB / 352.5 MB, free: 7.809 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006569/0.3025, allocations: 328 kB / 352.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3025, allocations: 0 / 352.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.3028, allocations: 139.8 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.0005034/0.3033, allocations: 73.67 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.002431/0.3057, allocations: 1.592 MB / 354.6 MB, free: 5.648 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.3063, allocations: 0.9171 MB / 355.6 MB, free: 4.703 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.3064, allocations: 47.33 kB / 355.6 MB, free: 4.652 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.3065, allocations: 27.44 kB / 355.6 MB, free: 4.625 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3065, allocations: 4 kB / 355.6 MB, free: 4.621 MB / 286.1 MB Notification: Performance of Templates: time 0.008666/0.3152, allocations: 3.743 MB / 359.4 MB, free: 0.875 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)