Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0101/0.0101, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001988/0.001988, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.601/1.601, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001444/0.001444, allocations: 50.89 kB / 326.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0933/0.09475, allocations: 46.61 MB / 373.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006211/0.101, allocations: 4.568 MB / 377.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.1038, allocations: 1.369 MB / 379.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.1044, allocations: 27.81 kB / 379.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004583/0.1049, allocations: 178.2 kB / 379.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.1054, allocations: 166.3 kB / 379.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008729/0.1062, allocations: 359.5 kB / 379.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1073, allocations: 0.9936 MB / 380.8 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005739/0.1078, allocations: 418.9 kB / 381.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003519/0.1082, allocations: 326.6 kB / 381.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003237/0.1085, allocations: 346 kB / 381.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.697e-05/0.1086, allocations: 72 kB / 381.9 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002561/0.1089, allocations: 116 kB / 382 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.109, allocations: 171.3 kB / 382.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.1093, allocations: 425.5 kB / 382.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009443/0.1103, allocations: 1.101 MB / 383.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1103, allocations: 0 / 383.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1103, allocations: 0 / 383.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.1103, allocations: 3.938 kB / 383.7 MB, free: 6.793 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001475/0.1118, allocations: 1.142 MB / 384.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1119, allocations: 8.031 kB / 384.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.112, allocations: 106.8 kB / 385 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008928/0.1129, allocations: 0.6267 MB / 385.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.113, allocations: 58 kB / 385.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.973e-05/0.1131, allocations: 87.89 kB / 385.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1142, allocations: 0.8482 MB / 386.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.951e-05/0.1143, allocations: 15.83 kB / 386.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.1143, allocations: 36 kB / 386.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/0.1144, allocations: 20 kB / 386.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008396/0.1152, allocations: 471.3 kB / 387.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.1188, allocations: 4.365 MB / 391.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1193, allocations: 299.5 kB / 391.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.1196, allocations: 153.3 kB / 391.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001917/0.1198, allocations: 170.6 kB / 392.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1198, allocations: 34.94 kB / 392.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.044e-06/0.1198, allocations: 0 / 392.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003336/0.1232, allocations: 1.735 MB / 393.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.1232, allocations: 55.97 kB / 393.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.1238, allocations: 0.5391 MB / 394.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.1239, allocations: 33.7 kB / 394.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/0.1242, allocations: 482.4 kB / 395 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1243, allocations: 208.9 kB / 395.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.1245, allocations: 146.6 kB / 395.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1247, allocations: 378.8 kB / 395.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.125, allocations: 157.9 kB / 395.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004897/0.1255, allocations: 463.2 kB / 396.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/0.1263, allocations: 0.6673 MB / 397 MB, free: 8.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1263, allocations: 0 / 397 MB, free: 8.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00113/0.1274, allocations: 0.7462 MB / 397.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1275, allocations: 8 kB / 397.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.1275, allocations: 8 kB / 397.7 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002283/0.1277, allocations: 56.84 kB / 397.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.1283, allocations: 183.7 kB / 398 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.1296, allocations: 1.685 MB / 399.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.1299, allocations: 31.98 kB / 399.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.13, allocations: 36 kB / 399.7 MB, free: 5.789 MB / 334.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.0004906/0.1305, allocations: 229.5 kB / 399.9 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.1307, allocations: 75.09 kB / 400 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001349/0.1308, allocations: 79.14 kB / 400.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1308, allocations: 4 kB / 400.1 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.1308, allocations: 4 kB / 400.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.1309, allocations: 3.984 kB / 400.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.1331, allocations: 1.412 MB / 401.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.1331, allocations: 0 / 401.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004553/0.1335, allocations: 120.2 kB / 401.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.499e-05/0.1336, allocations: 28.86 kB / 401.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.1337, allocations: 12 kB / 401.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009996/0.1347, allocations: 1.378 MB / 403.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.1347, allocations: 4 kB / 403.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009898/0.1357, allocations: 0.7735 MB / 403.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.1358, allocations: 140.2 kB / 404 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.1359, allocations: 16 kB / 404 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.1361, allocations: 12 kB / 404 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.857e-05/0.1362, allocations: 43.88 kB / 404 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.1362, allocations: 24 kB / 404.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003861/0.1366, allocations: 363.1 kB / 404.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1366, allocations: 0 / 404.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006459/0.1372, allocations: 136 kB / 404.5 MB, free: 0.6289 MB / 334.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.0001711/0.1374, allocations: 123.2 kB / 404.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.1385, allocations: 0.5882 MB / 405.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1385, allocations: 0 / 405.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.139, allocations: 315 kB / 405.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.1396, allocations: 98.83 kB / 405.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.1424, allocations: 1.847 MB / 407.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.1429, allocations: 0.9691 MB / 408.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002517/0.1432, allocations: 93.91 kB / 408.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.1433, allocations: 55.42 kB / 408.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1433, allocations: 4 kB / 408.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of Templates: time 0.01158/0.1549, allocations: 5.429 MB / 414.1 MB, free: 6.98 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)