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.001629/0.001629, allocations: 106.5 kB / 16.51 MB, free: 6.707 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.00197/0.00197, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.469/1.469, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001339/0.001339, allocations: 47.94 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1011, allocations: 46.62 MB / 325.9 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006903/0.1081, allocations: 5.401 MB / 331.4 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003883/0.112, allocations: 2.076 MB / 333.4 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.1131, allocations: 35.81 kB / 333.5 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008057/0.114, allocations: 166.7 kB / 333.6 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009101/0.1149, allocations: 134.9 kB / 333.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1161, allocations: 339.4 kB / 334.1 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.1178, allocations: 0.9586 MB / 335 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/0.1189, allocations: 0.5513 MB / 335.6 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005677/0.1195, allocations: 286.8 kB / 335.9 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004572/0.12, allocations: 338.3 kB / 336.2 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1201, allocations: 55.98 kB / 336.3 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002817/0.1204, allocations: 112 kB / 336.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002461/0.1206, allocations: 163.3 kB / 336.5 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005535/0.1212, allocations: 398 kB / 336.9 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.1223, allocations: 1.086 MB / 338 MB, free: 8.754 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1223, allocations: 0 / 338 MB, free: 8.754 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1223, allocations: 0 / 338 MB, free: 8.754 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.1223, allocations: 0 / 338 MB, free: 8.754 MB / 286.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.001501/0.1238, allocations: 1.03 MB / 339 MB, free: 7.672 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1239, allocations: 16.03 kB / 339.1 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.124, allocations: 83.91 kB / 339.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.1247, allocations: 0.4985 MB / 339.6 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.222e-05/0.1247, allocations: 66.38 kB / 339.7 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.1248, allocations: 92.27 kB / 339.8 MB, free: 6.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1262, allocations: 0.8047 MB / 340.6 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.1263, allocations: 11.88 kB / 340.6 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.1263, allocations: 36 kB / 340.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.1264, allocations: 20 kB / 340.7 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009868/0.1274, allocations: 499.6 kB / 341.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003708/0.1311, allocations: 2.903 MB / 344 MB, free: 2.453 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000557/0.1317, allocations: 218.7 kB / 344.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.1318, allocations: 108.8 kB / 344.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.1322, allocations: 247.3 kB / 344.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.1322, allocations: 42.5 kB / 344.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.1322, allocations: 0 / 344.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002572/0.1348, allocations: 1.254 MB / 345.9 MB, free: 436 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.1349, allocations: 59.41 kB / 346 MB, free: 364 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.1352, allocations: 300.5 kB / 346.3 MB, free: 48 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.1353, allocations: 29.7 kB / 346.3 MB, free: 12 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.1356, allocations: 406.5 kB / 346.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.1357, allocations: 134 kB / 346.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1358, allocations: 86.16 kB / 346.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1359, allocations: 350.7 kB / 347.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1362, allocations: 109.1 kB / 347.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.1365, allocations: 258.5 kB / 347.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006821/0.1371, allocations: 384.7 kB / 348 MB, free: 14.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1372, allocations: 0 / 348 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000848/0.138, allocations: 460.9 kB / 348.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.138, allocations: 4 kB / 348.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.1381, allocations: 11.98 kB / 348.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002229/0.1383, allocations: 37.44 kB / 348.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.1387, allocations: 107.8 kB / 348.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003718/0.139, allocations: 0.5562 MB / 349.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.1392, allocations: 16 kB / 349.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.1393, allocations: 20 kB / 349.2 MB, free: 12.94 MB / 302.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.000301/0.1396, allocations: 221.8 kB / 349.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.1397, allocations: 39.53 kB / 349.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006129/0.1403, allocations: 318 kB / 349.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1403, allocations: 4 kB / 349.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.1403, allocations: 7.984 kB / 349.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1403, allocations: 0 / 349.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.1419, allocations: 1.025 MB / 350.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1419, allocations: 3.984 kB / 350.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.1423, allocations: 79.89 kB / 350.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.1424, allocations: 41 kB / 350.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.1425, allocations: 8 kB / 350.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003492/0.1428, allocations: 0.5483 MB / 351.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.1428, allocations: 4.031 kB / 351.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007653/0.1436, allocations: 0.5477 MB / 352 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.994e-05/0.1437, allocations: 108.6 kB / 352.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.1438, allocations: 12 kB / 352.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.1439, allocations: 12 kB / 352.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.645e-05/0.144, allocations: 19.97 kB / 352.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.144, allocations: 15.98 kB / 352.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.1443, allocations: 215.2 kB / 352.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1443, allocations: 0 / 352.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005003/0.1448, allocations: 119.9 kB / 352.5 MB, free: 9.438 MB / 302.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.0001876/0.145, allocations: 127.1 kB / 352.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005684/0.1456, allocations: 299.5 kB / 352.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1456, allocations: 0 / 352.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.1458, allocations: 145.2 kB / 353.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.1463, allocations: 61.41 kB / 353.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.1496, allocations: 1.939 MB / 355.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007862/0.1504, allocations: 0.9287 MB / 356 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002611/0.1507, allocations: 47.33 kB / 356 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.657e-05/0.1508, allocations: 31.44 kB / 356.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1508, allocations: 0 / 356.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of Templates: time 0.01317/0.164, allocations: 3.571 MB / 359.6 MB, free: 2.223 MB / 302.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)