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.0007816/0.0007817, allocations: 90.48 kB / 16.31 MB, free: 6.453 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.0009216/0.0009218, allocations: 180.7 kB / 17.21 MB, free: 6.328 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.4 MB / 223.4 MB, free: 5.816 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.0004905/0.0004906, allocations: 8 kB / 280.1 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2828, allocations: 47.58 MB / 327.7 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004975/0.2878, allocations: 3.902 MB / 331.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.2912, allocations: 1.3 MB / 332.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006175/0.2918, allocations: 25.31 kB / 333 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.2922, allocations: 121.9 kB / 333.1 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.2928, allocations: 131.7 kB / 333.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.2941, allocations: 245.5 kB / 333.4 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.2956, allocations: 0.8556 MB / 334.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005128/0.2962, allocations: 292.8 kB / 334.6 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004077/0.2966, allocations: 248 kB / 334.8 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.297, allocations: 271.9 kB / 335.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.117e-05/0.297, allocations: 27.81 kB / 335.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.2973, allocations: 72.5 kB / 335.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.2974, allocations: 112.1 kB / 335.3 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.2976, allocations: 179.2 kB / 335.5 MB, free: 11.57 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.2984, allocations: 0.7607 MB / 336.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.2984, allocations: 1.188 kB / 336.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.2984, allocations: 0 / 336.2 MB, free: 10.98 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2984, allocations: 0 / 336.2 MB, free: 10.98 MB / 270.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.001408/0.2998, allocations: 0.9855 MB / 337.2 MB, free: 9.961 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2999, allocations: 8.031 kB / 337.2 MB, free: 9.953 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.3, allocations: 106.7 kB / 337.3 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008697/0.3009, allocations: 0.5841 MB / 337.9 MB, free: 9.219 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.301, allocations: 58 kB / 338 MB, free: 9.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3011, allocations: 83.98 kB / 338.1 MB, free: 9.078 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.3024, allocations: 0.8365 MB / 338.9 MB, free: 8.137 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.3025, allocations: 11.84 kB / 338.9 MB, free: 8.125 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-05/0.3025, allocations: 36 kB / 338.9 MB, free: 8.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.3025, allocations: 20 kB / 339 MB, free: 8.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.3034, allocations: 471.3 kB / 339.4 MB, free: 7.609 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003833/0.3072, allocations: 4.412 MB / 343.8 MB, free: 3.004 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.3078, allocations: 299.6 kB / 344.1 MB, free: 2.703 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.3081, allocations: 141.6 kB / 344.3 MB, free: 2.562 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002312/0.3083, allocations: 170.6 kB / 344.4 MB, free: 2.359 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.3084, allocations: 34.94 kB / 344.5 MB, free: 2.316 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 1.904e-06/0.3084, allocations: 0 / 344.5 MB, free: 2.316 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003235/0.3116, allocations: 1.736 MB / 346.2 MB, free: 500 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.3117, allocations: 59.97 kB / 346.3 MB, free: 428 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000588/0.3123, allocations: 0.5352 MB / 346.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.3123, allocations: 33.7 kB / 346.8 MB, free: 15.83 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.3126, allocations: 482.4 kB / 347.3 MB, free: 15.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.3128, allocations: 212.9 kB / 347.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.3128, allocations: 16 kB / 347.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.313, allocations: 378.8 kB / 347.9 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.3133, allocations: 157.9 kB / 348 MB, free: 14.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/0.3137, allocations: 463.2 kB / 348.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.3141, allocations: 232.7 kB / 348.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.3141, allocations: 4 kB / 348.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001104/0.3152, allocations: 0.7421 MB / 349.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.3153, allocations: 8 kB / 349.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.3153, allocations: 11.94 kB / 349.5 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.3155, allocations: 48.84 kB / 349.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005528/0.316, allocations: 187.7 kB / 349.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.3175, allocations: 1.514 MB / 351.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.3178, allocations: 28 kB / 351.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/0.3178, allocations: 39.94 kB / 351.3 MB, free: 11.06 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003279/0.3182, allocations: 229.7 kB / 351.5 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-05/0.3183, allocations: 71.06 kB / 351.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.3184, allocations: 83.03 kB / 351.7 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3184, allocations: 4 kB / 351.7 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3184, allocations: 3.984 kB / 351.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.3184, allocations: 0 / 351.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.3204, allocations: 1.427 MB / 353.1 MB, free: 9.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.3204, allocations: 8 kB / 353.1 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004978/0.3209, allocations: 120.2 kB / 353.2 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.974e-05/0.321, allocations: 28.8 kB / 353.3 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.321, allocations: 19.98 kB / 353.3 MB, free: 8.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009688/0.322, allocations: 1.268 MB / 354.5 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.322, allocations: 4 kB / 354.6 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3231, allocations: 0.784 MB / 355.3 MB, free: 6.711 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.3232, allocations: 136.2 kB / 355.5 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.3232, allocations: 16 kB / 355.5 MB, free: 6.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.3234, allocations: 12 kB / 355.5 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.3235, allocations: 43.94 kB / 355.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.3236, allocations: 23.98 kB / 355.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000372/0.324, allocations: 355.1 kB / 355.9 MB, free: 6.121 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.324, allocations: 0 / 355.9 MB, free: 6.121 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006722/0.3246, allocations: 136 kB / 356 MB, free: 5.988 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001436/0.3248, allocations: 123.1 kB / 356.2 MB, free: 5.855 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009754/0.3258, allocations: 0.5726 MB / 356.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3258, allocations: 0.5 kB / 356.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003913/0.3262, allocations: 310.3 kB / 357 MB, free: 4.957 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006024/0.3268, allocations: 91.66 kB / 357.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.3298, allocations: 2.302 MB / 359.4 MB, free: 2.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.3303, allocations: 0.9652 MB / 360.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002865/0.3306, allocations: 81.94 kB / 360.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3308, allocations: 59.42 kB / 360.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3308, allocations: 0 / 360.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of Templates: time 0.01069/0.3415, allocations: 4.872 MB / 365.4 MB, free: 12.48 MB / 302.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)