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.001372/0.001372, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001139/0.001139, allocations: 192.7 kB / 16.25 MB, free: 6.617 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.513/1.513, allocations: 205.1 MB / 222.1 MB, free: 4.742 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.001745/0.001745, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3207, allocations: 46.63 MB / 324.8 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007667/0.3284, allocations: 4.56 MB / 329.4 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.3318, allocations: 1.341 MB / 330.7 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006937/0.3325, allocations: 26.19 kB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004456/0.333, allocations: 137.3 kB / 330.9 MB, free: 13 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004404/0.3334, allocations: 135.9 kB / 331 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009233/0.3344, allocations: 318 kB / 331.3 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.3355, allocations: 0.9788 MB / 332.3 MB, free: 12.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006988/0.3362, allocations: 412 kB / 332.7 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004967/0.3368, allocations: 330.8 kB / 333.1 MB, free: 11.58 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.3372, allocations: 354.4 kB / 333.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.3373, allocations: 71.84 kB / 333.5 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.3376, allocations: 111.7 kB / 333.6 MB, free: 11.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.3378, allocations: 174.6 kB / 333.7 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.3381, allocations: 429.5 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.3393, allocations: 1.047 MB / 335.2 MB, free: 9.676 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3393, allocations: 0 / 335.2 MB, free: 9.676 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3394, allocations: 0 / 335.2 MB, free: 9.676 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.3394, allocations: 0 / 335.2 MB, free: 9.676 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.00165/0.341, allocations: 1.146 MB / 336.4 MB, free: 8.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3411, allocations: 12.03 kB / 336.4 MB, free: 8.469 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.3412, allocations: 106.7 kB / 336.5 MB, free: 8.363 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007522/0.342, allocations: 0.6032 MB / 337.1 MB, free: 7.715 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.3421, allocations: 58 kB / 337.1 MB, free: 7.656 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3422, allocations: 80 kB / 337.2 MB, free: 7.578 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3436, allocations: 0.8442 MB / 338.1 MB, free: 6.629 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.944e-05/0.3437, allocations: 15.84 kB / 338.1 MB, free: 6.613 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.3438, allocations: 32 kB / 338.1 MB, free: 6.582 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.3438, allocations: 28 kB / 338.1 MB, free: 6.555 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008736/0.3447, allocations: 467.3 kB / 338.6 MB, free: 6.098 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004271/0.349, allocations: 4.4 MB / 343 MB, free: 1.504 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.3496, allocations: 307.9 kB / 343.3 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.3498, allocations: 145.3 kB / 343.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003616/0.3502, allocations: 174.6 kB / 343.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.3502, allocations: 38.94 kB / 343.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 2.174e-06/0.3502, allocations: 0 / 343.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003737/0.354, allocations: 1.724 MB / 345.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.3541, allocations: 63.89 kB / 345.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.3547, allocations: 0.543 MB / 346 MB, free: 14.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.3547, allocations: 29.7 kB / 346 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003257/0.3551, allocations: 486.4 kB / 346.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3552, allocations: 205 kB / 346.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.3554, allocations: 146.5 kB / 346.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3556, allocations: 378.8 kB / 347.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.3559, allocations: 161.9 kB / 347.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.3564, allocations: 459.2 kB / 347.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007996/0.3572, allocations: 0.6634 MB / 348.5 MB, free: 11.56 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3572, allocations: 4 kB / 348.5 MB, free: 11.56 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001071/0.3583, allocations: 0.7345 MB / 349.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3583, allocations: 8 kB / 349.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.3584, allocations: 16.09 kB / 349.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001769/0.3585, allocations: 48.78 kB / 349.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005554/0.3591, allocations: 187.7 kB / 349.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.3607, allocations: 1.693 MB / 351.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.361, allocations: 24 kB / 351.2 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.361, allocations: 40 kB / 351.2 MB, free: 8.66 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.0003216/0.3614, allocations: 229.7 kB / 351.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-05/0.3615, allocations: 75.09 kB / 351.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.3616, allocations: 75.06 kB / 351.6 MB, free: 8.273 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-06/0.3616, allocations: 8 kB / 351.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.3616, allocations: 0 / 351.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3616, allocations: 0 / 351.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.3635, allocations: 1.431 MB / 353 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3635, allocations: 3.984 kB / 353 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004694/0.364, allocations: 115.8 kB / 353.1 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.74e-05/0.364, allocations: 24.84 kB / 353.2 MB, free: 6.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.3641, allocations: 20.34 kB / 353.2 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009765/0.3651, allocations: 1.375 MB / 354.6 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3651, allocations: 4 kB / 354.6 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.3662, allocations: 0.7762 MB / 355.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3663, allocations: 140.2 kB / 355.5 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.3663, allocations: 19.94 kB / 355.5 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.3665, allocations: 15.98 kB / 355.5 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/0.3666, allocations: 39.89 kB / 355.5 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.3667, allocations: 16 kB / 355.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003763/0.367, allocations: 363.1 kB / 355.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3671, allocations: 8 kB / 355.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006475/0.3677, allocations: 136.2 kB / 356.1 MB, free: 3.48 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.0001692/0.3679, allocations: 115.1 kB / 356.2 MB, free: 3.355 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.369, allocations: 0.6118 MB / 356.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.369, allocations: 0 / 356.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.3694, allocations: 307.3 kB / 357.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.37, allocations: 103.1 kB / 357.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.3728, allocations: 2.226 MB / 359.4 MB, free: 32 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.3734, allocations: 0.9613 MB / 360.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002662/0.3736, allocations: 89.92 kB / 360.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3738, allocations: 59.42 kB / 360.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3738, allocations: 0 / 360.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Templates: time 0.0109/0.3847, allocations: 5.263 MB / 365.8 MB, free: 9.629 MB / 302.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)