Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.0009293/0.0009293, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005948/0.005948, allocations: 173.8 kB / 16.27 MB, free: 6.676 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.553/1.553, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0007569/0.0007575, allocations: 20.38 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2927, allocations: 47.58 MB / 327 MB, free: 1.727 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005805/0.2986, allocations: 4.139 MB / 331.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003907/0.3026, allocations: 1.329 MB / 332.5 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.3036, allocations: 19.69 kB / 332.5 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004621/0.3041, allocations: 133.8 kB / 332.6 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005556/0.3047, allocations: 131.4 kB / 332.8 MB, free: 13.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009473/0.3056, allocations: 321.4 kB / 333.1 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.3068, allocations: 0.9236 MB / 334 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006024/0.3074, allocations: 374.2 kB / 334.4 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.3079, allocations: 252.3 kB / 334.6 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.3082, allocations: 295.4 kB / 334.9 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.956e-05/0.3083, allocations: 27.78 kB / 334.9 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.3085, allocations: 67.73 kB / 335 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.931e-05/0.3087, allocations: 119.3 kB / 335.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000301/0.309, allocations: 395.2 kB / 335.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008245/0.3098, allocations: 0.9454 MB / 336.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3098, allocations: 0 / 336.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3098, allocations: 0 / 336.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3098, allocations: 0 / 336.5 MB, free: 10.18 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.001474/0.3113, allocations: 0.9821 MB / 337.4 MB, free: 9.145 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3114, allocations: 11.97 kB / 337.4 MB, free: 9.133 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.3115, allocations: 106.8 kB / 337.6 MB, free: 9.027 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008382/0.3124, allocations: 0.5877 MB / 338.1 MB, free: 8.395 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.569e-05/0.3124, allocations: 54 kB / 338.2 MB, free: 8.34 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.3126, allocations: 91.84 kB / 338.3 MB, free: 8.25 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.314, allocations: 0.8481 MB / 339.1 MB, free: 7.297 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/0.314, allocations: 11.92 kB / 339.1 MB, free: 7.285 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.427e-05/0.3141, allocations: 36 kB / 339.2 MB, free: 7.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.3141, allocations: 20 kB / 339.2 MB, free: 7.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009097/0.315, allocations: 479.3 kB / 339.7 MB, free: 6.762 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003972/0.319, allocations: 4.408 MB / 344.1 MB, free: 2.16 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005714/0.3196, allocations: 303.9 kB / 344.4 MB, free: 1.855 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.3199, allocations: 149.3 kB / 344.5 MB, free: 1.707 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002658/0.3201, allocations: 174.6 kB / 344.7 MB, free: 1.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3202, allocations: 34.94 kB / 344.7 MB, free: 1.457 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 2.574e-06/0.3202, allocations: 0 / 344.7 MB, free: 1.457 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003421/0.3236, allocations: 1.743 MB / 346.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.3237, allocations: 55.97 kB / 346.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006348/0.3243, allocations: 0.543 MB / 347.1 MB, free: 15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.3244, allocations: 37.7 kB / 347.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.3247, allocations: 478.4 kB / 347.6 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.3249, allocations: 212.9 kB / 347.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.325, allocations: 73.67 kB / 347.8 MB, free: 14.19 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3251, allocations: 382.8 kB / 348.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.3254, allocations: 161.9 kB / 348.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/0.3259, allocations: 459.1 kB / 348.8 MB, free: 13.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008868/0.3268, allocations: 0.6712 MB / 349.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3269, allocations: 4 kB / 349.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001113/0.328, allocations: 0.7418 MB / 350.2 MB, free: 11.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.328, allocations: 12 kB / 350.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.328, allocations: 11.94 kB / 350.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002034/0.3283, allocations: 52.83 kB / 350.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.3288, allocations: 184.4 kB / 350.5 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.3302, allocations: 1.521 MB / 352 MB, free: 9.598 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.3306, allocations: 32.06 kB / 352.1 MB, free: 9.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.3306, allocations: 32 kB / 352.1 MB, free: 9.535 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 (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.0003376/0.331, allocations: 229.6 kB / 352.3 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.086e-05/0.3311, allocations: 67.16 kB / 352.4 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.3312, allocations: 83.06 kB / 352.5 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.3312, allocations: 7.938 kB / 352.5 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3312, allocations: 0 / 352.5 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3312, allocations: 7.984 kB / 352.5 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.3332, allocations: 1.435 MB / 353.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3332, allocations: 0 / 353.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/0.3337, allocations: 111.9 kB / 354 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.782e-05/0.3338, allocations: 32.78 kB / 354 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.3339, allocations: 12 kB / 354.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009795/0.3348, allocations: 1.28 MB / 355.3 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3349, allocations: 4 kB / 355.3 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3359, allocations: 0.7801 MB / 356.1 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3361, allocations: 136.2 kB / 356.3 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.65e-05/0.3361, allocations: 16 kB / 356.3 MB, free: 5.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3363, allocations: 15.98 kB / 356.3 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.677e-05/0.3364, allocations: 47.92 kB / 356.3 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.3365, allocations: 16 kB / 356.3 MB, free: 4.938 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004056/0.3369, allocations: 367.1 kB / 356.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3369, allocations: 0 / 356.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006569/0.3375, allocations: 136 kB / 356.8 MB, free: 4.449 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 (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.0002435/0.3378, allocations: 115.1 kB / 357 MB, free: 4.324 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009915/0.3388, allocations: 0.5847 MB / 357.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3388, allocations: 7.938 kB / 357.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.3392, allocations: 302.5 kB / 357.8 MB, free: 3.414 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.34, allocations: 107.8 kB / 357.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.3432, allocations: 2.391 MB / 360.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005782/0.3438, allocations: 0.9614 MB / 361.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00031/0.3441, allocations: 89.91 kB / 361.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.3443, allocations: 59.36 kB / 361.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3443, allocations: 0 / 361.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of Templates: time 0.01096/0.3552, allocations: 5.013 MB / 366.5 MB, free: 10.7 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)