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.00121/0.00121, allocations: 113.3 kB / 17.07 MB, free: 5.969 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.001219/0.001219, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.66/1.66, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.002089/0.002089, allocations: 52.41 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1217, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.248/0.3697, allocations: 5.416 MB / 379.9 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.3739, allocations: 2.109 MB / 382 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009332/0.3749, allocations: 36.47 kB / 382 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005232/0.3755, allocations: 205.1 kB / 382.2 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004623/0.3759, allocations: 172.4 kB / 382.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.377, allocations: 391.1 kB / 382.8 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001442/0.3784, allocations: 1.014 MB / 383.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009414/0.3794, allocations: 0.6098 MB / 384.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000551/0.38, allocations: 338.5 kB / 384.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.3804, allocations: 360.4 kB / 385.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.3805, allocations: 93.19 kB / 385.2 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003429/0.3809, allocations: 152.6 kB / 385.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.3811, allocations: 203.8 kB / 385.5 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003749/0.3815, allocations: 431.4 kB / 386 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.383, allocations: 1.18 MB / 387.1 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.383, allocations: 0 / 387.1 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.383, allocations: 5.094 kB / 387.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.3831, allocations: 0 / 387.1 MB, free: 7.191 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.001703/0.3848, allocations: 1.028 MB / 388.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3848, allocations: 10.28 kB / 388.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.385, allocations: 87.19 kB / 388.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008806/0.3859, allocations: 0.5192 MB / 388.8 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.3859, allocations: 65.12 kB / 388.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3861, allocations: 88.69 kB / 388.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.3876, allocations: 0.8055 MB / 389.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.945e-05/0.3876, allocations: 7.703 kB / 389.7 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.3877, allocations: 40.62 kB / 389.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.3877, allocations: 21.34 kB / 389.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3887, allocations: 0.4942 MB / 390.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.392, allocations: 2.847 MB / 393.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.3926, allocations: 226.9 kB / 393.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.3927, allocations: 102.2 kB / 393.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001735/0.3929, allocations: 250.2 kB / 393.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.393, allocations: 33.28 kB / 393.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.865e-06/0.393, allocations: 0 / 393.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002534/0.3955, allocations: 1.27 MB / 395 MB, free: 2.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.3956, allocations: 55.25 kB / 395.1 MB, free: 2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.396, allocations: 302 kB / 395.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.3961, allocations: 39.08 kB / 395.4 MB, free: 1.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.3964, allocations: 401.7 kB / 395.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.3965, allocations: 132.7 kB / 395.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3966, allocations: 86.83 kB / 396 MB, free: 1.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3968, allocations: 355.7 kB / 396.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.397, allocations: 106.9 kB / 396.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.3973, allocations: 252.4 kB / 396.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005232/0.3979, allocations: 392.5 kB / 397.1 MB, free: 448 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3979, allocations: 1.438 kB / 397.1 MB, free: 448 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000806/0.3987, allocations: 462.7 kB / 397.5 MB, free: 232 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.3987, allocations: 6.969 kB / 397.5 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.3987, allocations: 5.281 kB / 397.6 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.399, allocations: 34.75 kB / 397.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.3994, allocations: 111.3 kB / 397.7 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005039/0.3999, allocations: 0.5581 MB / 398.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.4001, allocations: 19.7 kB / 398.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.4002, allocations: 23.48 kB / 398.3 MB, free: 15.64 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.00041/0.4006, allocations: 213.3 kB / 398.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.463e-05/0.4007, allocations: 33.28 kB / 398.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007066/0.4014, allocations: 334.6 kB / 398.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.4014, allocations: 6.594 kB / 398.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4014, allocations: 0.9375 kB / 398.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4015, allocations: 1.125 kB / 398.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.4033, allocations: 1.009 MB / 399.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.4033, allocations: 1.969 kB / 399.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.4037, allocations: 81.3 kB / 400 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.4039, allocations: 33.64 kB / 400 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.404, allocations: 17.28 kB / 400 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004662/0.4044, allocations: 0.5542 MB / 400.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4045, allocations: 1.781 kB / 400.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.4054, allocations: 0.5521 MB / 401.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4055, allocations: 105 kB / 401.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.4056, allocations: 8.688 kB / 401.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.4057, allocations: 7.406 kB / 401.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.4058, allocations: 28.89 kB / 401.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.4059, allocations: 15.03 kB / 401.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.4062, allocations: 216.4 kB / 401.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4062, allocations: 0 / 401.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007475/0.4069, allocations: 121 kB / 401.6 MB, free: 13.46 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.0002628/0.4072, allocations: 118.4 kB / 401.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007106/0.4079, allocations: 307.4 kB / 402 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4079, allocations: 0 / 402 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.4082, allocations: 141.7 kB / 402.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.4088, allocations: 66.48 kB / 402.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003169/0.412, allocations: 1.581 MB / 403.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000623/0.4126, allocations: 0.9187 MB / 404.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.4128, allocations: 43.97 kB / 404.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/0.4129, allocations: 31.8 kB / 404.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4129, allocations: 0 / 404.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Templates: time 0.01062/0.4235, allocations: 3.921 MB / 408.7 MB, free: 9.738 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)