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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001352, allocations: 108 kB / 17.06 MB, free: 5.82 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.001299/0.001299, allocations: 195.9 kB / 18 MB, free: 4.965 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.589/1.589, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.00134/0.00134, allocations: 51.94 kB / 327.9 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1156, allocations: 46.61 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.249/0.3646, allocations: 5.407 MB / 379.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005059/0.3697, allocations: 2.115 MB / 382 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007177/0.3704, allocations: 40.94 kB / 382 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.371, allocations: 201.8 kB / 382.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003769/0.3714, allocations: 170.5 kB / 382.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.3723, allocations: 393.2 kB / 382.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.3736, allocations: 1.011 MB / 383.8 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009303/0.3746, allocations: 0.6151 MB / 384.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005229/0.3751, allocations: 330.8 kB / 384.7 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.3756, allocations: 365.4 kB / 385.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.3757, allocations: 92 kB / 385.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.376, allocations: 149.4 kB / 385.3 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.3762, allocations: 204.2 kB / 385.5 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003714/0.3766, allocations: 430.9 kB / 385.9 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.378, allocations: 1.184 MB / 387.1 MB, free: 7.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3781, allocations: 0 / 387.1 MB, free: 7.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3781, allocations: 5.906 kB / 387.1 MB, free: 7.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3781, allocations: 0 / 387.1 MB, free: 7.457 MB / 318.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.001492/0.3796, allocations: 1.046 MB / 388.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.3797, allocations: 9.406 kB / 388.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.3798, allocations: 92.48 kB / 388.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000841/0.3807, allocations: 0.5274 MB / 388.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.3808, allocations: 64.62 kB / 388.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.3809, allocations: 93.19 kB / 389 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3824, allocations: 0.8018 MB / 389.8 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/0.3825, allocations: 3.719 kB / 389.8 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.3825, allocations: 44.23 kB / 389.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.3826, allocations: 21.34 kB / 389.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.3836, allocations: 0.4913 MB / 390.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.3866, allocations: 2.862 MB / 393.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006109/0.3872, allocations: 227.3 kB / 393.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.3874, allocations: 106.7 kB / 393.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.3876, allocations: 246.8 kB / 393.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.3876, allocations: 35.88 kB / 393.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.823e-06/0.3876, allocations: 0 / 393.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002639/0.3903, allocations: 1.27 MB / 395.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.3903, allocations: 59.38 kB / 395.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.3907, allocations: 306.4 kB / 395.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.3908, allocations: 35.08 kB / 395.4 MB, free: 2.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.3911, allocations: 413.9 kB / 395.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.3912, allocations: 139 kB / 396 MB, free: 1.578 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.3914, allocations: 86.39 kB / 396.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3915, allocations: 352.2 kB / 396.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.3918, allocations: 105.7 kB / 396.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.3921, allocations: 248.8 kB / 396.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.3927, allocations: 402.2 kB / 397.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3927, allocations: 1.844 kB / 397.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009067/0.3936, allocations: 458.3 kB / 397.6 MB, free: 440 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.3937, allocations: 6.812 kB / 397.6 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.3937, allocations: 4.969 kB / 397.6 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002711/0.394, allocations: 38.2 kB / 397.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.3944, allocations: 112.7 kB / 397.8 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004283/0.3948, allocations: 0.5564 MB / 398.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.395, allocations: 16.23 kB / 398.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.566e-05/0.3951, allocations: 22.98 kB / 398.4 MB, free: 15.85 MB / 334.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.0004278/0.3955, allocations: 221.2 kB / 398.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.459e-05/0.3956, allocations: 38.05 kB / 398.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007145/0.3964, allocations: 325.8 kB / 398.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3964, allocations: 5.125 kB / 398.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3964, allocations: 0 / 398.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.3964, allocations: 2.062 kB / 398.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.3983, allocations: 1.016 MB / 400 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3983, allocations: 1.938 kB / 400 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.3986, allocations: 76.86 kB / 400 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.3988, allocations: 33.34 kB / 400.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.3988, allocations: 11.44 kB / 400.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003891/0.3992, allocations: 0.551 MB / 400.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3992, allocations: 2.75 kB / 400.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.4002, allocations: 0.5611 MB / 401.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.4004, allocations: 111.9 kB / 401.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.4004, allocations: 12.47 kB / 401.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.4006, allocations: 8.531 kB / 401.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.4007, allocations: 24 kB / 401.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.4007, allocations: 10.33 kB / 401.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003422/0.4011, allocations: 221.7 kB / 401.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4011, allocations: 0 / 401.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007218/0.4018, allocations: 115.8 kB / 401.7 MB, free: 13.66 MB / 334.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.0002594/0.4021, allocations: 124.3 kB / 401.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008345/0.4029, allocations: 303.7 kB / 402.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4029, allocations: 0 / 402.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003506/0.4033, allocations: 137.3 kB / 402.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.4039, allocations: 69.84 kB / 402.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.4076, allocations: 1.604 MB / 403.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009865/0.4086, allocations: 0.9243 MB / 404.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.4089, allocations: 42.55 kB / 404.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.409, allocations: 33.56 kB / 404.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.409, allocations: 0 / 404.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Templates: time 0.01118/0.4202, allocations: 3.844 MB / 408.7 MB, free: 9.926 MB / 334.1 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)