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.001605/0.001605, allocations: 104.5 kB / 16.92 MB, free: 6.148 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.001967/0.001967, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.561/1.561, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.001233/0.001233, allocations: 52.14 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1158, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006122/0.122, allocations: 4.56 MB / 331.2 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.1247, allocations: 1.381 MB / 332.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005273/0.1253, allocations: 27.81 kB / 332.6 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005446/0.1259, allocations: 174.2 kB / 332.8 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004928/0.1264, allocations: 166.3 kB / 332.9 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000961/0.1273, allocations: 359.5 kB / 333.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.1284, allocations: 0.9705 MB / 334.2 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006049/0.129, allocations: 419.1 kB / 334.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004255/0.1295, allocations: 330.6 kB / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.1298, allocations: 357.9 kB / 335.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.215e-05/0.1299, allocations: 72 kB / 335.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.1302, allocations: 112 kB / 335.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1303, allocations: 171.3 kB / 335.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.1306, allocations: 425.5 kB / 336.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009813/0.1316, allocations: 1.047 MB / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1316, allocations: 0 / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1317, allocations: 0 / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.1317, allocations: 0 / 337.1 MB, free: 9.887 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.001624/0.1333, allocations: 1.145 MB / 338.3 MB, free: 8.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1334, allocations: 12.03 kB / 338.3 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.1335, allocations: 106.7 kB / 338.4 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007947/0.1343, allocations: 0.5877 MB / 339 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.1344, allocations: 65.94 kB / 339 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1345, allocations: 79.98 kB / 339.1 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.1358, allocations: 0.8481 MB / 340 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.1358, allocations: 11.84 kB / 340 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.1359, allocations: 32 kB / 340 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.136, allocations: 28 kB / 340 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008514/0.1368, allocations: 467.3 kB / 340.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.1406, allocations: 4.4 MB / 344.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006253/0.1413, allocations: 311.2 kB / 345.2 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.1416, allocations: 141.3 kB / 345.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.1419, allocations: 178.5 kB / 345.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.786e-05/0.142, allocations: 38.94 kB / 345.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 3.857e-06/0.142, allocations: 0 / 345.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003471/0.1455, allocations: 1.728 MB / 347.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1455, allocations: 59.91 kB / 347.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006258/0.1462, allocations: 0.543 MB / 347.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.1462, allocations: 33.7 kB / 347.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.1466, allocations: 482.4 kB / 348.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.1468, allocations: 213 kB / 348.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.1469, allocations: 138.5 kB / 348.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1471, allocations: 382.8 kB / 349.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.1474, allocations: 157.9 kB / 349.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.1478, allocations: 459.2 kB / 349.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007926/0.1486, allocations: 0.6673 MB / 350.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1487, allocations: 8 kB / 350.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00109/0.1498, allocations: 0.7344 MB / 351.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.1498, allocations: 11.94 kB / 351.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1498, allocations: 16.16 kB / 351.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.15, allocations: 44.84 kB / 351.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.1506, allocations: 183.7 kB / 351.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.1524, allocations: 1.689 MB / 353.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.1527, allocations: 28 kB / 353.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.1528, allocations: 36 kB / 353.1 MB, free: 8.883 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.0003764/0.1532, allocations: 233.6 kB / 353.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1533, allocations: 75.09 kB / 353.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.1534, allocations: 71.08 kB / 353.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.1535, allocations: 8 kB / 353.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.1535, allocations: 0 / 353.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.1535, allocations: 3.984 kB / 353.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.1556, allocations: 1.427 MB / 354.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.1557, allocations: 0 / 354.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004786/0.1562, allocations: 115.9 kB / 355 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.871e-05/0.1563, allocations: 25.14 kB / 355.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.1563, allocations: 23.98 kB / 355.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009883/0.1573, allocations: 1.375 MB / 356.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.1573, allocations: 4 kB / 356.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.1584, allocations: 0.7761 MB / 357.2 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1585, allocations: 136.2 kB / 357.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.162e-05/0.1586, allocations: 12 kB / 357.4 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.1588, allocations: 16 kB / 357.4 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.582e-05/0.1589, allocations: 52.09 kB / 357.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.1589, allocations: 12 kB / 357.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.1594, allocations: 367 kB / 357.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1594, allocations: 0 / 357.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000733/0.1602, allocations: 140 kB / 358 MB, free: 3.715 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.0001959/0.1604, allocations: 123.1 kB / 358.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.1616, allocations: 0.6041 MB / 358.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1616, allocations: 3.938 kB / 358.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.162, allocations: 323 kB / 359 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006027/0.1626, allocations: 95.19 kB / 359.1 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.1654, allocations: 1.862 MB / 361 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.166, allocations: 0.9652 MB / 361.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002916/0.1663, allocations: 85.94 kB / 362 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.1665, allocations: 59.42 kB / 362.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.242e-06/0.1665, allocations: 0 / 362.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of Templates: time 0.011/0.1775, allocations: 5.279 MB / 367.3 MB, free: 10.2 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)