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.007693/0.007693, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001473/0.001473, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.568/1.568, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.002225/0.002225, allocations: 53.84 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1167, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007197/0.124, allocations: 4.553 MB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.1273, allocations: 1.373 MB / 379.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009175/0.1283, allocations: 23.88 kB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006774/0.129, allocations: 178.2 kB / 379.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007978/0.1299, allocations: 166.3 kB / 379.5 MB, free: 11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.131, allocations: 363.5 kB / 379.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001639/0.1327, allocations: 0.9897 MB / 380.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008058/0.1335, allocations: 430.8 kB / 381.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006922/0.1342, allocations: 326.6 kB / 381.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000596/0.1348, allocations: 342 kB / 381.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002266/0.1351, allocations: 72 kB / 381.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004788/0.1356, allocations: 111.9 kB / 382 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.1358, allocations: 179.2 kB / 382.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007046/0.1366, allocations: 425.6 kB / 382.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001736/0.1383, allocations: 1.112 MB / 383.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1383, allocations: 0 / 383.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1383, allocations: 0 / 383.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.146e-05/0.1384, allocations: 0 / 383.8 MB, free: 6.668 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.003013/0.1414, allocations: 1.176 MB / 384.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.534e-05/0.1415, allocations: 8.031 kB / 384.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003283/0.1419, allocations: 111.3 kB / 385 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.1434, allocations: 0.6311 MB / 385.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.502e-05/0.1435, allocations: 62 kB / 385.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.1436, allocations: 87.94 kB / 385.8 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.1452, allocations: 0.852 MB / 386.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/0.1453, allocations: 7.938 kB / 386.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-05/0.1453, allocations: 32 kB / 386.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.1454, allocations: 20 kB / 386.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008741/0.1462, allocations: 475.3 kB / 387.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.1513, allocations: 4.385 MB / 391.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007083/0.152, allocations: 300.6 kB / 391.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.1523, allocations: 141.3 kB / 392 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.1525, allocations: 170.6 kB / 392.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.1526, allocations: 34.94 kB / 392.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.525e-06/0.1526, allocations: 0 / 392.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003664/0.1563, allocations: 1.749 MB / 394 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.1563, allocations: 59.91 kB / 394 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007085/0.157, allocations: 0.5354 MB / 394.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.1571, allocations: 41.64 kB / 394.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.1575, allocations: 491.7 kB / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.1577, allocations: 226.1 kB / 395.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.1579, allocations: 138.6 kB / 395.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.1581, allocations: 382.8 kB / 395.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.1584, allocations: 157.9 kB / 396 MB, free: 9.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005423/0.1589, allocations: 463.2 kB / 396.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008961/0.1598, allocations: 0.6673 MB / 397.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.1599, allocations: 0 / 397.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001224/0.1611, allocations: 0.7425 MB / 397.8 MB, free: 7.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.1611, allocations: 11.94 kB / 397.8 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.1611, allocations: 8 kB / 397.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.1613, allocations: 52.78 kB / 397.9 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005725/0.1619, allocations: 179.7 kB / 398.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/0.1635, allocations: 1.705 MB / 399.8 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/0.1639, allocations: 24 kB / 399.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.164, allocations: 36.06 kB / 399.8 MB, free: 5.57 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.0003191/0.1643, allocations: 233.5 kB / 400.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1644, allocations: 79.47 kB / 400.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.1645, allocations: 75.08 kB / 400.2 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1645, allocations: 4 kB / 400.2 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.1646, allocations: 7.984 kB / 400.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1646, allocations: 0 / 400.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.1667, allocations: 1.412 MB / 401.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1667, allocations: 0 / 401.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004877/0.1672, allocations: 115.9 kB / 401.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.082e-05/0.1673, allocations: 24.8 kB / 401.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.1673, allocations: 16.11 kB / 401.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009913/0.1683, allocations: 1.379 MB / 403.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1683, allocations: 4 kB / 403.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1694, allocations: 0.7818 MB / 404 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1695, allocations: 140.6 kB / 404.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/0.1696, allocations: 16 kB / 404.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.1698, allocations: 8 kB / 404.1 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.622e-05/0.1699, allocations: 55.91 kB / 404.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.1699, allocations: 16 kB / 404.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003522/0.1702, allocations: 355.1 kB / 404.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1703, allocations: 4 kB / 404.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006319/0.1709, allocations: 144 kB / 404.7 MB, free: 408 kB / 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.0001522/0.1711, allocations: 123.1 kB / 404.8 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.1722, allocations: 0.5768 MB / 405.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1722, allocations: 7.875 kB / 405.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004677/0.1727, allocations: 310.5 kB / 405.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.1733, allocations: 104.2 kB / 405.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.1765, allocations: 1.88 MB / 407.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007031/0.1772, allocations: 0.9613 MB / 408.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.1775, allocations: 89.91 kB / 408.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1777, allocations: 59.42 kB / 408.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1777, allocations: 0 / 408.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of Templates: time 0.0123/0.19, allocations: 5.444 MB / 414.2 MB, free: 6.715 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)