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.01077/0.01077, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.002091/0.002091, allocations: 188.7 kB / 16.67 MB, free: 5.523 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.501/1.501, 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.001106/0.001106, allocations: 51.92 kB / 326.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.09038, allocations: 46.62 MB / 373.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006255/0.09668, allocations: 4.567 MB / 377.7 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1955/0.2922, allocations: 1.363 MB / 379.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004201/0.2927, allocations: 27.78 kB / 379.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003854/0.2931, allocations: 180.9 kB / 379.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.2935, allocations: 158 kB / 379.4 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.2947, allocations: 365.2 kB / 379.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.2958, allocations: 0.9799 MB / 380.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000718/0.2966, allocations: 425.9 kB / 381.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.2971, allocations: 322.8 kB / 381.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.2975, allocations: 347.3 kB / 381.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.2976, allocations: 76.53 kB / 381.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000229/0.2978, allocations: 116 kB / 382 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.298, allocations: 170.5 kB / 382.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002929/0.2983, allocations: 425.5 kB / 382.6 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.2994, allocations: 1.107 MB / 383.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2994, allocations: 0 / 383.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2994, allocations: 0 / 383.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.2995, allocations: 0 / 383.7 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.001454/0.3009, allocations: 1.14 MB / 384.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.301, allocations: 9.188 kB / 384.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.3011, allocations: 107 kB / 385 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009592/0.3021, allocations: 0.6259 MB / 385.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.507e-05/0.3021, allocations: 63.03 kB / 385.7 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3023, allocations: 85.56 kB / 385.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.3037, allocations: 0.8423 MB / 386.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/0.3038, allocations: 17 kB / 386.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.319e-05/0.3038, allocations: 33.75 kB / 386.6 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.904e-05/0.3039, allocations: 21.2 kB / 386.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009788/0.3049, allocations: 474.8 kB / 387.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.3083, allocations: 4.362 MB / 391.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.3089, allocations: 306.9 kB / 391.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.3092, allocations: 146.4 kB / 391.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.3093, allocations: 168.8 kB / 392.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3094, allocations: 37.27 kB / 392.1 MB, free: 1.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 3.166e-06/0.3094, allocations: 4.969 kB / 392.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003479/0.3129, allocations: 1.736 MB / 393.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.3129, allocations: 57.91 kB / 393.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006538/0.3136, allocations: 0.5396 MB / 394.5 MB, free: 392 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3136, allocations: 32.33 kB / 394.5 MB, free: 356 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.3139, allocations: 480.9 kB / 395 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.3141, allocations: 212 kB / 395.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.3143, allocations: 141 kB / 395.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.3145, allocations: 378.3 kB / 395.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.3149, allocations: 163.9 kB / 395.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.3154, allocations: 457.3 kB / 396.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/0.3164, allocations: 0.673 MB / 397 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3165, allocations: 2.812 kB / 397 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001407/0.3179, allocations: 0.7393 MB / 397.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.3179, allocations: 8.719 kB / 397.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.3179, allocations: 9.938 kB / 397.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/0.3181, allocations: 47.41 kB / 397.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/0.3188, allocations: 186 kB / 397.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.3202, allocations: 1.691 MB / 399.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.3206, allocations: 24.94 kB / 399.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.3207, allocations: 42.75 kB / 399.7 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.0003517/0.321, allocations: 234.1 kB / 399.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3211, allocations: 77.41 kB / 400 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001474/0.3213, allocations: 72.22 kB / 400.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3213, allocations: 6.609 kB / 400.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.3213, allocations: 1.406 kB / 400.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3213, allocations: 3.188 kB / 400.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.3235, allocations: 1.408 MB / 401.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3235, allocations: 2.75 kB / 401.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.324, allocations: 117.2 kB / 401.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-05/0.3241, allocations: 24.28 kB / 401.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.428e-05/0.3241, allocations: 16.05 kB / 401.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009084/0.3251, allocations: 1.373 MB / 403 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.3251, allocations: 4.594 kB / 403 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.3262, allocations: 0.7762 MB / 403.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.3264, allocations: 137 kB / 403.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.3265, allocations: 15.62 kB / 404 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3267, allocations: 18.94 kB / 404 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.216e-05/0.3268, allocations: 42.42 kB / 404 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3268, allocations: 18.27 kB / 404 MB, free: 9.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005185/0.3273, allocations: 364.3 kB / 404.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3273, allocations: 0 / 404.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007922/0.3281, allocations: 138.2 kB / 404.5 MB, free: 8.867 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.0001377/0.3283, allocations: 126.6 kB / 404.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.3294, allocations: 0.6018 MB / 405.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3294, allocations: 1.156 kB / 405.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004271/0.3298, allocations: 308.6 kB / 405.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.3305, allocations: 108.2 kB / 405.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.3338, allocations: 1.846 MB / 407.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007789/0.3346, allocations: 0.9642 MB / 408.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003373/0.335, allocations: 83.83 kB / 408.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3351, allocations: 59.17 kB / 408.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3351, allocations: 0 / 408.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of Templates: time 0.01337/0.3485, allocations: 5.44 MB / 414 MB, free: 3.852 MB / 334.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)