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.001081/0.001081, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009557/0.009557, allocations: 171 kB / 16.27 MB, free: 6.332 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.658/1.658, allocations: 205.4 MB / 222.4 MB, free: 5.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.0004339/0.0004339, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2539, allocations: 47.59 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005066/0.259, allocations: 4.942 MB / 332 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.2624, allocations: 2.049 MB / 334 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005975/0.263, allocations: 37.34 kB / 334.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003772/0.2634, allocations: 156.2 kB / 334.2 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.2638, allocations: 144.8 kB / 334.3 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007299/0.2645, allocations: 336.6 kB / 334.7 MB, free: 11.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009194/0.2655, allocations: 0.9471 MB / 335.6 MB, free: 10.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007299/0.2662, allocations: 0.5378 MB / 336.2 MB, free: 10.2 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.2665, allocations: 238.8 kB / 336.4 MB, free: 9.961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003305/0.2668, allocations: 274.4 kB / 336.7 MB, free: 9.691 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.2669, allocations: 36 kB / 336.7 MB, free: 9.656 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2671, allocations: 91.91 kB / 336.8 MB, free: 9.566 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.2673, allocations: 123.4 kB / 336.9 MB, free: 9.445 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.2676, allocations: 379.6 kB / 337.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008881/0.2685, allocations: 1.056 MB / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2685, allocations: 0 / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2685, allocations: 0 / 338.3 MB, free: 8.008 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.2685, 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.001264/0.2698, allocations: 0.8852 MB / 339.2 MB, free: 7.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2698, allocations: 12.03 kB / 339.2 MB, free: 7.059 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.2699, allocations: 83.91 kB / 339.3 MB, free: 6.977 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006063/0.2706, allocations: 0.4948 MB / 339.8 MB, free: 6.441 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.357e-05/0.2706, allocations: 66.38 kB / 339.9 MB, free: 6.379 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.2708, allocations: 88.28 kB / 340 MB, free: 6.293 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.2721, allocations: 0.8126 MB / 340.8 MB, free: 5.441 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.2722, allocations: 4 kB / 340.8 MB, free: 5.438 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/0.2722, allocations: 36 kB / 340.8 MB, free: 5.402 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.2723, allocations: 20 kB / 340.8 MB, free: 5.383 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.2732, allocations: 0.5035 MB / 341.3 MB, free: 4.883 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.2764, allocations: 2.899 MB / 344.2 MB, free: 1.852 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.277, allocations: 227.4 kB / 344.5 MB, free: 1.621 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.2772, allocations: 108.8 kB / 344.6 MB, free: 1.512 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002548/0.2775, allocations: 243.3 kB / 344.8 MB, free: 1.219 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.2775, allocations: 42.56 kB / 344.8 MB, free: 1.168 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.933e-06/0.2776, allocations: 0 / 344.8 MB, free: 1.168 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002449/0.28, allocations: 1.267 MB / 346.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.2801, allocations: 59.39 kB / 346.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.2804, allocations: 304.5 kB / 346.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2804, allocations: 29.7 kB / 346.5 MB, free: 15.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.2807, allocations: 398.6 kB / 346.9 MB, free: 14.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.2808, allocations: 134 kB / 347 MB, free: 14.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.2808, allocations: 49.7 kB / 347.1 MB, free: 14.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.281, allocations: 354.7 kB / 347.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.2812, allocations: 113.1 kB / 347.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.2815, allocations: 250.5 kB / 347.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.282, allocations: 392.6 kB / 348.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.282, allocations: 4 kB / 348.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007332/0.2828, allocations: 468.9 kB / 348.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.2828, allocations: 8 kB / 348.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.2828, allocations: 7.938 kB / 348.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001879/0.283, allocations: 32.84 kB / 348.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.2834, allocations: 112.4 kB / 348.8 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004238/0.2838, allocations: 0.5639 MB / 349.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.284, allocations: 19.98 kB / 349.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.2841, 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.0003535/0.2844, allocations: 213.7 kB / 349.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/0.2845, allocations: 39.56 kB / 349.6 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006427/0.2851, allocations: 330 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2852, allocations: 4 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2852, allocations: 0 / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2852, allocations: 4 kB / 349.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.2867, allocations: 1.025 MB / 351 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2867, allocations: 0 / 351 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.287, allocations: 88.05 kB / 351.1 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001407/0.2872, allocations: 28.84 kB / 351.1 MB, free: 10.51 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.2872, allocations: 8 kB / 351.1 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003625/0.2876, allocations: 0.5602 MB / 351.7 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2876, allocations: 0 / 351.7 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/0.2884, allocations: 0.5593 MB / 352.2 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.675e-05/0.2885, allocations: 104.7 kB / 352.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.596e-05/0.2886, allocations: 8 kB / 352.3 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2887, allocations: 11.98 kB / 352.3 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.2888, allocations: 28 kB / 352.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.2888, allocations: 12 kB / 352.4 MB, free: 9.141 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002388/0.2891, allocations: 215 kB / 352.6 MB, free: 8.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2891, allocations: 3.938 kB / 352.6 MB, free: 8.926 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005461/0.2897, allocations: 124 kB / 352.7 MB, free: 8.805 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.0001807/0.2898, allocations: 111.2 kB / 352.8 MB, free: 8.688 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006132/0.2905, allocations: 308.6 kB / 353.1 MB, free: 8.387 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2905, allocations: 0 / 353.1 MB, free: 8.387 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003758/0.2909, allocations: 135.8 kB / 353.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005531/0.2914, allocations: 65.97 kB / 353.3 MB, free: 8.191 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.2943, allocations: 2.097 MB / 355.4 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.2949, allocations: 0.9249 MB / 356.3 MB, free: 5.094 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2951, allocations: 55.31 kB / 356.4 MB, free: 5.039 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.602e-05/0.2952, allocations: 31.38 kB / 356.4 MB, free: 5.008 MB / 286.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2952, allocations: 0 / 356.4 MB, free: 5.008 MB / 286.1 MB Notification: Performance of Templates: time 0.009769/0.305, allocations: 3.535 MB / 360 MB, free: 1.473 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)