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.001407/0.001407, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001622/0.001622, allocations: 192 kB / 18 MB, free: 4.977 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 / 223.9 MB, free: 12.25 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.001147/0.001147, allocations: 51.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09891, allocations: 46.63 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.217/0.3159, allocations: 4.56 MB / 379 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003041/0.319, allocations: 1.362 MB / 380.4 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003908/0.3194, allocations: 24.72 kB / 380.4 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.3199, allocations: 175.7 kB / 380.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003341/0.3203, allocations: 170.2 kB / 380.8 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007586/0.321, allocations: 360 kB / 381.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000887/0.3219, allocations: 0.9885 MB / 382.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/0.3226, allocations: 428.1 kB / 382.5 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/0.323, allocations: 329.6 kB / 382.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.3233, allocations: 347.4 kB / 383.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.3235, allocations: 72.31 kB / 383.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.3237, allocations: 120.5 kB / 383.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3238, allocations: 174.6 kB / 383.5 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.3241, allocations: 426.1 kB / 384 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.3253, allocations: 1.102 MB / 385.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.3253, allocations: 1.281 kB / 385.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3254, allocations: 0 / 385.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.3254, allocations: 0 / 385.1 MB, free: 7.91 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.001532/0.3269, allocations: 1.132 MB / 386.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.327, allocations: 8.625 kB / 386.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.3271, allocations: 102.9 kB / 386.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009821/0.3281, allocations: 0.6339 MB / 386.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.522e-05/0.3282, allocations: 60.28 kB / 387 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.3283, allocations: 84.61 kB / 387.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3298, allocations: 0.8502 MB / 387.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.3298, allocations: 9.344 kB / 387.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.3299, allocations: 37.53 kB / 388 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.993e-05/0.3299, allocations: 26.42 kB / 388 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009663/0.3309, allocations: 473 kB / 388.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.3342, allocations: 4.369 MB / 392.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005599/0.3348, allocations: 301.6 kB / 393.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.335, allocations: 148 kB / 393.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.3352, allocations: 168.2 kB / 393.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3352, allocations: 37.12 kB / 393.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.946e-06/0.3352, allocations: 7.984 kB / 393.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003291/0.3385, allocations: 1.73 MB / 395.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.3385, allocations: 62.31 kB / 395.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005994/0.3391, allocations: 0.5363 MB / 395.8 MB, free: 392 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.3392, allocations: 31.23 kB / 395.8 MB, free: 356 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.3395, allocations: 480.5 kB / 396.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.3397, allocations: 209.1 kB / 396.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.3399, allocations: 137.5 kB / 396.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.3401, allocations: 382.2 kB / 397 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000305/0.3404, allocations: 166.4 kB / 397.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.341, allocations: 466.2 kB / 397.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008761/0.3419, allocations: 0.6643 MB / 398.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3419, allocations: 2.375 kB / 398.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001179/0.3431, allocations: 0.74 MB / 399 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.3431, allocations: 8.969 kB / 399 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.3431, allocations: 10.45 kB / 399.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.3433, allocations: 47.09 kB / 399.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005692/0.3439, allocations: 181.5 kB / 399.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.3453, allocations: 1.689 MB / 401 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.3457, allocations: 29.06 kB / 401 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-05/0.3457, allocations: 43.16 kB / 401 MB, free: 12.29 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.0003231/0.3461, allocations: 229.2 kB / 401.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3462, allocations: 73.31 kB / 401.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001323/0.3463, allocations: 76.66 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3463, allocations: 9.906 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.3463, allocations: 1.562 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3464, allocations: 3.188 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.3486, allocations: 1.41 MB / 402.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3486, allocations: 2.625 kB / 402.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.3491, allocations: 113.5 kB / 402.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.052e-05/0.3492, allocations: 24.66 kB / 403 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.3493, allocations: 14.75 kB / 403 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.3503, allocations: 1.38 MB / 404.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3503, allocations: 7.766 kB / 404.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3515, allocations: 0.7721 MB / 405.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.3516, allocations: 138.2 kB / 405.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.649e-05/0.3517, allocations: 14.11 kB / 405.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.352, allocations: 19.7 kB / 405.3 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.3521, allocations: 42.56 kB / 405.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.3521, allocations: 17.59 kB / 405.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004616/0.3526, allocations: 364.7 kB / 405.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3526, allocations: 0 / 405.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006584/0.3532, allocations: 137.4 kB / 405.9 MB, free: 8.863 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.0001415/0.3534, allocations: 122.9 kB / 406 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.3544, allocations: 0.5915 MB / 406.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3544, allocations: 1 kB / 406.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.3549, allocations: 310.1 kB / 406.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.3555, allocations: 113.9 kB / 407 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.3583, allocations: 1.843 MB / 408.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006701/0.359, allocations: 0.9652 MB / 409.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.3593, allocations: 91.7 kB / 409.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3595, allocations: 58.08 kB / 409.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3595, allocations: 3.938 kB / 409.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of Templates: time 0.01166/0.3711, allocations: 5.442 MB / 415.4 MB, free: 3.836 MB / 334.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)