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.001513/0.001513, allocations: 116.5 kB / 16.63 MB, free: 6.793 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.00155/0.00155, allocations: 189.8 kB / 17.55 MB, free: 5.918 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.435/1.435, allocations: 205.1 MB / 223.4 MB, free: 12.48 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.001101/0.001102, allocations: 43.94 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1099, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005955/0.1159, allocations: 4.559 MB / 330.7 MB, free: 216 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.1186, allocations: 1.353 MB / 332 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003674/0.119, allocations: 19.88 kB / 332.1 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003814/0.1194, allocations: 134.9 kB / 332.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.1197, allocations: 126.8 kB / 332.3 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007279/0.1205, allocations: 331.7 kB / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009126/0.1214, allocations: 0.9705 MB / 333.6 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005608/0.122, allocations: 423 kB / 334 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.1224, allocations: 326.6 kB / 334.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.1227, allocations: 346 kB / 334.7 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.272e-05/0.1228, allocations: 72 kB / 334.8 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.123, allocations: 115.9 kB / 334.9 MB, free: 12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1231, allocations: 171.3 kB / 335 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003359/0.1235, allocations: 425.5 kB / 335.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009574/0.1244, allocations: 1.051 MB / 336.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1245, allocations: 4 kB / 336.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1245, allocations: 0 / 336.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.1245, allocations: 0 / 336.5 MB, free: 10.35 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.001499/0.126, allocations: 1.153 MB / 337.7 MB, free: 9.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.1261, allocations: 8.031 kB / 337.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.1262, allocations: 106.7 kB / 337.8 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007987/0.127, allocations: 0.5877 MB / 338.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.1271, allocations: 58 kB / 338.4 MB, free: 8.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.1272, allocations: 80 kB / 338.5 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.1285, allocations: 0.8442 MB / 339.3 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/0.1286, allocations: 15.84 kB / 339.4 MB, free: 7.301 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.1287, allocations: 39.98 kB / 339.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.1287, allocations: 23.98 kB / 339.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008304/0.1295, allocations: 471.3 kB / 339.9 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003815/0.1333, allocations: 4.404 MB / 344.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006072/0.134, allocations: 307.3 kB / 344.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1342, allocations: 149.3 kB / 344.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003423/0.1346, allocations: 162.6 kB / 344.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.1346, allocations: 46.86 kB / 344.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.925e-06/0.1346, allocations: 0 / 344.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003457/0.1381, allocations: 1.724 MB / 346.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.1382, allocations: 63.91 kB / 346.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/0.1388, allocations: 0.5391 MB / 347.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.1388, allocations: 37.7 kB / 347.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003499/0.1392, allocations: 478.3 kB / 347.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.1393, allocations: 205 kB / 348 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.1395, allocations: 146.5 kB / 348.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1397, allocations: 378.8 kB / 348.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.14, allocations: 165.9 kB / 348.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.1405, allocations: 455.2 kB / 349.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008539/0.1414, allocations: 0.6673 MB / 349.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1414, allocations: 4 kB / 349.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001124/0.1425, allocations: 0.7383 MB / 350.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.1426, allocations: 11.94 kB / 350.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.1426, allocations: 15.98 kB / 350.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002154/0.1428, allocations: 48.78 kB / 350.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.1434, allocations: 183.7 kB / 350.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.145, allocations: 1.681 MB / 352.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.1453, allocations: 36.05 kB / 352.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.214e-05/0.1454, allocations: 36 kB / 352.5 MB, free: 9.344 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.0003438/0.1457, allocations: 237.5 kB / 352.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.1458, allocations: 71.09 kB / 352.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.146, allocations: 71.08 kB / 352.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.146, allocations: 8 kB / 352.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.146, allocations: 0 / 352.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.146, allocations: 4.031 kB / 352.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.1479, allocations: 1.423 MB / 354.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.148, allocations: 4 kB / 354.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004545/0.1484, allocations: 116.2 kB / 354.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.382e-05/0.1485, allocations: 28.84 kB / 354.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.1486, allocations: 12 kB / 354.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.1495, allocations: 1.375 MB / 355.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/0.1495, allocations: 4 kB / 355.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.1506, allocations: 0.78 MB / 356.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.1507, allocations: 140.2 kB / 356.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.1508, allocations: 16 kB / 356.8 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.151, allocations: 12 kB / 356.8 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.928e-05/0.1511, allocations: 47.92 kB / 356.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.1511, allocations: 19.98 kB / 356.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003811/0.1515, allocations: 363.1 kB / 357.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1515, allocations: 0 / 357.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006353/0.1522, allocations: 136.2 kB / 357.3 MB, free: 4.176 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.0001303/0.1523, allocations: 115.2 kB / 357.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.1533, allocations: 0.6118 MB / 358.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1534, allocations: 8.062 kB / 358.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.1537, allocations: 318.4 kB / 358.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.1544, allocations: 95.86 kB / 358.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.1574, allocations: 2.221 MB / 360.7 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005557/0.1579, allocations: 0.9652 MB / 361.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003332/0.1583, allocations: 81.94 kB / 361.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.1584, allocations: 59.42 kB / 361.8 MB, free: 15.58 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1584, allocations: 0 / 361.8 MB, free: 15.58 MB / 318.1 MB Notification: Performance of Templates: time 0.01214/0.1706, allocations: 5.267 MB / 367.1 MB, free: 10.32 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)