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.001053/0.001053, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001209/0.001209, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005054/0.0005055, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2702, allocations: 47.58 MB / 326.4 MB, free: 1.613 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003948/0.2741, allocations: 3.789 MB / 330.2 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.2763, allocations: 1.328 MB / 331.6 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004095/0.2767, allocations: 23.5 kB / 331.6 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2769, allocations: 77.83 kB / 331.7 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.2773, allocations: 214.8 kB / 331.9 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005788/0.2779, allocations: 244.7 kB / 332.1 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007582/0.2787, allocations: 0.6402 MB / 332.7 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.2791, allocations: 294.4 kB / 333 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.2794, allocations: 240.6 kB / 333.3 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.2797, allocations: 275.7 kB / 333.5 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.899e-05/0.2798, allocations: 28.06 kB / 333.6 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.28, allocations: 60.58 kB / 333.6 MB, free: 12.17 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.2801, allocations: 113.5 kB / 333.7 MB, free: 12.09 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.2803, allocations: 178.1 kB / 333.9 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006552/0.2809, allocations: 0.7589 MB / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2809, allocations: 0 / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2809, allocations: 1.219 kB / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.281, allocations: 0 / 334.7 MB, free: 11.38 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.001288/0.2823, allocations: 0.9791 MB / 335.6 MB, free: 10.37 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2823, allocations: 12.03 kB / 335.7 MB, free: 10.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.2824, allocations: 102.8 kB / 335.8 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007532/0.2832, allocations: 0.5763 MB / 336.3 MB, free: 9.637 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.2832, allocations: 62 kB / 336.4 MB, free: 9.574 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.2833, allocations: 80 kB / 336.5 MB, free: 9.496 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.2845, allocations: 0.8364 MB / 337.3 MB, free: 8.555 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/0.2846, allocations: 11.84 kB / 337.3 MB, free: 8.543 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.2846, allocations: 36 kB / 337.4 MB, free: 8.508 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.2847, allocations: 20 kB / 337.4 MB, free: 8.488 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008171/0.2855, allocations: 471.3 kB / 337.8 MB, free: 8.027 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003457/0.289, allocations: 4.408 MB / 342.2 MB, free: 3.426 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.2895, allocations: 303.5 kB / 342.5 MB, free: 3.121 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001981/0.2897, allocations: 170.6 kB / 342.7 MB, free: 2.918 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.2898, allocations: 42.94 kB / 342.7 MB, free: 2.867 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 1.724e-06/0.2898, allocations: 0 / 342.7 MB, free: 2.867 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003166/0.2929, allocations: 1.732 MB / 344.5 MB, free: 1.043 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.293, allocations: 55.97 kB / 344.5 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005652/0.2936, allocations: 0.5313 MB / 345.1 MB, free: 444 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.2936, allocations: 33.7 kB / 345.1 MB, free: 404 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/0.2939, allocations: 478.6 kB / 345.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.2941, allocations: 220.9 kB / 345.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.2941, allocations: 20 kB / 345.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.2943, allocations: 378.8 kB / 346.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/0.2945, allocations: 157.9 kB / 346.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.295, allocations: 455.1 kB / 346.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.2954, allocations: 236.7 kB / 347 MB, free: 14.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2954, allocations: 4 kB / 347 MB, free: 14.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001096/0.2965, allocations: 0.7342 MB / 347.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2966, allocations: 12.19 kB / 347.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.2966, allocations: 12 kB / 347.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001636/0.2968, allocations: 48.84 kB / 347.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005947/0.2974, allocations: 179.7 kB / 348 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.2986, allocations: 1.522 MB / 349.5 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.2989, allocations: 28.19 kB / 349.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.299, allocations: 40 kB / 349.6 MB, free: 11.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.2993, allocations: 233.5 kB / 349.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2994, allocations: 75.11 kB / 349.9 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.2995, allocations: 79.03 kB / 350 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.2995, allocations: 8 kB / 350 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2996, allocations: 0 / 350 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2996, allocations: 3.984 kB / 350 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.3014, allocations: 1.419 MB / 351.4 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.3014, allocations: 3.953 kB / 351.4 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.3019, allocations: 115.8 kB / 351.5 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.068e-05/0.302, allocations: 28.84 kB / 351.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.302, allocations: 12.34 kB / 351.5 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008305/0.3029, allocations: 1.28 MB / 352.8 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.3029, allocations: 11.92 kB / 352.8 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.304, allocations: 0.916 MB / 353.7 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.3042, allocations: 136.3 kB / 353.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/0.3042, allocations: 27.98 kB / 353.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.3044, allocations: 16.12 kB / 353.9 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.3045, allocations: 43.94 kB / 354 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.3046, allocations: 19.94 kB / 354 MB, free: 6.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003974/0.305, allocations: 359.1 kB / 354.3 MB, free: 6.465 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.305, allocations: 0 / 354.3 MB, free: 6.465 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006793/0.3057, allocations: 144 kB / 354.5 MB, free: 6.324 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001796/0.3058, allocations: 115.2 kB / 354.6 MB, free: 6.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009409/0.3068, allocations: 0.5753 MB / 355.2 MB, free: 5.613 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3068, allocations: 5.438 kB / 355.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004252/0.3072, allocations: 315 kB / 355.5 MB, free: 5.289 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.3077, allocations: 78.97 kB / 355.6 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.3106, allocations: 2.294 MB / 357.9 MB, free: 2.852 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.3112, allocations: 0.9812 MB / 358.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002692/0.3115, allocations: 89.92 kB / 358.9 MB, free: 1.75 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3116, allocations: 59.42 kB / 359 MB, free: 1.691 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3116, allocations: 0 / 359 MB, free: 1.691 MB / 286.1 MB Notification: Performance of Templates: time 0.009933/0.3216, allocations: 4.848 MB / 363.8 MB, free: 12.84 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: