Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.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.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001379, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001285/0.001286, allocations: 177 kB / 17.56 MB, free: 6.18 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.605/1.605, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004681/0.0004682, allocations: 8 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09894, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004733/0.1037, allocations: 4.131 MB / 332.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1062, allocations: 1.334 MB / 333.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.1066, allocations: 23.81 kB / 333.8 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.107, allocations: 138.8 kB / 333.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003212/0.1073, allocations: 126.9 kB / 334.1 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006876/0.108, allocations: 323.6 kB / 334.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.1089, allocations: 0.9157 MB / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005194/0.1094, allocations: 375.1 kB / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/0.1098, allocations: 258.6 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.1101, allocations: 294 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.559e-05/0.1102, allocations: 28 kB / 336.2 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.1104, allocations: 67.92 kB / 336.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1105, allocations: 115.4 kB / 336.4 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.1108, allocations: 395.2 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009078/0.1117, allocations: 0.9454 MB / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1117, allocations: 0 / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1117, allocations: 0 / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1117, allocations: 0 / 337.7 MB, free: 10.25 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001449/0.1132, allocations: 0.9859 MB / 338.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.1132, allocations: 8.031 kB / 338.7 MB, free: 9.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.1134, allocations: 106.8 kB / 338.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.1142, allocations: 0.5916 MB / 339.4 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.524e-05/0.1143, allocations: 62 kB / 339.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.1144, allocations: 79.91 kB / 339.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.1157, allocations: 0.8481 MB / 340.4 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/0.1158, allocations: 15.84 kB / 340.4 MB, free: 7.359 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.1159, allocations: 40 kB / 340.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.1159, allocations: 20 kB / 340.5 MB, free: 7.301 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008671/0.1168, allocations: 475.3 kB / 341 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.1203, allocations: 4.4 MB / 345.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.1208, allocations: 311.2 kB / 345.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.1211, allocations: 149.3 kB / 345.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/0.1213, allocations: 166.6 kB / 346 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.1213, allocations: 38.94 kB / 346 MB, free: 1.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.655e-06/0.1213, allocations: 0 / 346 MB, free: 1.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003161/0.1245, allocations: 1.747 MB / 347.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.1246, allocations: 63.95 kB / 347.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.1251, allocations: 0.5314 MB / 348.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1252, allocations: 33.7 kB / 348.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.1255, allocations: 482.4 kB / 348.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.1256, allocations: 216.9 kB / 349.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.652e-05/0.1257, allocations: 65.69 kB / 349.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1259, allocations: 382.8 kB / 349.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.1262, allocations: 165.9 kB / 349.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.1267, allocations: 463.2 kB / 350.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/0.1275, allocations: 0.6673 MB / 350.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.1275, allocations: 4 kB / 350.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001056/0.1285, allocations: 0.7499 MB / 351.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1286, allocations: 8.188 kB / 351.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1286, allocations: 16 kB / 351.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.1287, allocations: 44.84 kB / 351.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005254/0.1293, allocations: 187.7 kB / 351.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.1305, allocations: 1.521 MB / 353.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.1308, allocations: 27.98 kB / 353.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.1308, allocations: 40.08 kB / 353.4 MB, free: 9.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002705/0.1311, allocations: 225.5 kB / 353.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.994e-05/0.1312, allocations: 75.22 kB / 353.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1313, allocations: 75.08 kB / 353.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1313, allocations: 11.94 kB / 353.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1313, allocations: 0 / 353.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1314, allocations: 3.984 kB / 353.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.1331, allocations: 1.431 MB / 355.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.1331, allocations: 4 kB / 355.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.1336, allocations: 111.9 kB / 355.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.221e-05/0.1337, allocations: 24.84 kB / 355.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.1337, allocations: 16.34 kB / 355.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007696/0.1345, allocations: 1.276 MB / 356.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.1345, allocations: 4 kB / 356.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009583/0.1355, allocations: 0.784 MB / 357.4 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.924e-05/0.1356, allocations: 136.2 kB / 357.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.1356, allocations: 19.98 kB / 357.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.1358, allocations: 16 kB / 357.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.997e-05/0.1359, allocations: 43.92 kB / 357.6 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.1359, allocations: 16 kB / 357.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003539/0.1363, allocations: 363.1 kB / 358 MB, free: 4.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.1363, allocations: 0 / 358 MB, free: 4.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000586/0.1369, allocations: 140 kB / 358.1 MB, free: 4.527 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001207/0.137, allocations: 115.1 kB / 358.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008963/0.1379, allocations: 0.5873 MB / 358.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.138, allocations: 1.375 kB / 358.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.1383, allocations: 323.2 kB / 359.1 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007827/0.1391, allocations: 98.56 kB / 359.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.142, allocations: 2.384 MB / 361.6 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007953/0.1428, allocations: 0.9654 MB / 362.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002972/0.1431, allocations: 89.92 kB / 362.7 MB, free: 15.85 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1433, allocations: 63.36 kB / 362.7 MB, free: 15.79 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1433, allocations: 0 / 362.7 MB, free: 15.79 MB / 318.1 MB Notification: Performance of Templates: time 0.01043/0.1537, allocations: 5.002 MB / 367.7 MB, free: 10.79 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)