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.007045/0.007051, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.001434/0.001435, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.541/1.541, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001369/0.001369, allocations: 59.92 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 46.61 MB / 373.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006141/0.1142, allocations: 4.563 MB / 377.7 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2525/0.3667, allocations: 1.361 MB / 379.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005146/0.3673, allocations: 25.62 kB / 379.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005201/0.3679, allocations: 179.9 kB / 379.3 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004147/0.3683, allocations: 164.4 kB / 379.4 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.3695, allocations: 368 kB / 379.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.3706, allocations: 0.9825 MB / 380.8 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006766/0.3713, allocations: 426 kB / 381.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.3717, allocations: 330.5 kB / 381.5 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.3721, allocations: 351.4 kB / 381.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.3722, allocations: 72.03 kB / 381.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002311/0.3725, allocations: 115.6 kB / 382 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.3726, allocations: 172 kB / 382.2 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.3729, allocations: 426.2 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.3743, allocations: 1.105 MB / 383.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3743, allocations: 1.062 kB / 383.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3743, allocations: 0 / 383.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.3743, allocations: 0 / 383.7 MB, free: 7.93 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.001632/0.3759, allocations: 1.14 MB / 384.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.376, allocations: 9.984 kB / 384.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.3762, allocations: 102.2 kB / 385 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009817/0.3771, allocations: 0.631 MB / 385.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.335e-05/0.3772, allocations: 57.97 kB / 385.7 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3773, allocations: 89.16 kB / 385.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.3788, allocations: 0.8464 MB / 386.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.169e-05/0.3788, allocations: 9.578 kB / 386.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/0.3789, allocations: 34.03 kB / 386.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.3789, allocations: 21.38 kB / 386.7 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.3801, allocations: 477.3 kB / 387.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003803/0.3839, allocations: 4.365 MB / 391.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.3845, allocations: 301.9 kB / 391.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.3848, allocations: 148.8 kB / 391.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001791/0.385, allocations: 170.5 kB / 392.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.385, allocations: 37.06 kB / 392.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 3.487e-06/0.385, allocations: 0 / 392.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003507/0.3885, allocations: 1.738 MB / 393.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3886, allocations: 59.17 kB / 393.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007904/0.3894, allocations: 0.535 MB / 394.5 MB, free: 420 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.3894, allocations: 39.02 kB / 394.5 MB, free: 376 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003771/0.3898, allocations: 482.3 kB / 395 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.39, allocations: 215.5 kB / 395.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.3903, allocations: 136.7 kB / 395.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002461/0.3906, allocations: 382.6 kB / 395.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.391, allocations: 159.3 kB / 395.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/0.3917, allocations: 464.7 kB / 396.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.3927, allocations: 0.67 MB / 397 MB, free: 14.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.3927, allocations: 2.156 kB / 397 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001576/0.3943, allocations: 0.7395 MB / 397.7 MB, free: 14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.3944, allocations: 10.16 kB / 397.7 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/0.3944, allocations: 9.25 kB / 397.7 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002651/0.3947, allocations: 46.7 kB / 397.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.3954, allocations: 180.8 kB / 398 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.397, allocations: 1.689 MB / 399.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.3974, allocations: 26.8 kB / 399.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.218e-05/0.3975, allocations: 37.91 kB / 399.7 MB, free: 12.31 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.000398/0.3979, allocations: 238 kB / 399.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.398, allocations: 73.45 kB / 400 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.3982, allocations: 77.47 kB / 400.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3982, allocations: 4.469 kB / 400.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/0.3982, allocations: 6.016 kB / 400.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3982, allocations: 2.953 kB / 400.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/0.4007, allocations: 1.409 MB / 401.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.4007, allocations: 3.453 kB / 401.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.4012, allocations: 113.2 kB / 401.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.967e-05/0.4013, allocations: 19.05 kB / 401.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/0.4013, allocations: 16.81 kB / 401.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.4025, allocations: 1.375 MB / 403 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.4026, allocations: 7.453 kB / 403 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.4041, allocations: 0.7739 MB / 403.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.4042, allocations: 144.8 kB / 404 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.4043, allocations: 14.16 kB / 404 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.4046, allocations: 11.72 kB / 404 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.4047, allocations: 50.97 kB / 404 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.4047, allocations: 18.36 kB / 404.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006513/0.4054, allocations: 359.2 kB / 404.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4054, allocations: 0 / 404.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008751/0.4063, allocations: 141.5 kB / 404.5 MB, free: 8.883 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.0002134/0.4065, allocations: 124 kB / 404.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.4079, allocations: 0.5877 MB / 405.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.4079, allocations: 1.344 kB / 405.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.4085, allocations: 308.9 kB / 405.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.4092, allocations: 118.2 kB / 405.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004389/0.4136, allocations: 1.848 MB / 407.5 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/0.4149, allocations: 0.9631 MB / 408.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004254/0.4153, allocations: 88.2 kB / 408.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.4155, allocations: 58.19 kB / 408.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of SimCode: time 3.426e-06/0.4155, allocations: 1.688 kB / 408.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of Templates: time 0.01351/0.429, allocations: 5.439 MB / 414.1 MB, free: 3.867 MB / 334.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)