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.001225/0.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001769/0.001769, allocations: 201.5 kB / 16.14 MB, free: 6.805 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.472/1.472, allocations: 205.1 MB / 222 MB, free: 4.777 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.001131/0.001131, allocations: 59.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2641, allocations: 46.62 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006243/0.2704, allocations: 4.564 MB / 329.2 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003774/0.2742, allocations: 1.351 MB / 330.6 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009046/0.2752, allocations: 22.34 kB / 330.6 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005282/0.2758, allocations: 133.6 kB / 330.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004905/0.2763, allocations: 131.6 kB / 330.9 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009658/0.2772, allocations: 320.5 kB / 331.2 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.2784, allocations: 0.9128 MB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007371/0.2791, allocations: 385.9 kB / 332.5 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004688/0.2796, allocations: 291 kB / 332.8 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004031/0.28, allocations: 331 kB / 333.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2801, allocations: 42.09 kB / 333.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.2804, allocations: 85.91 kB / 333.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.2806, allocations: 132.4 kB / 333.3 MB, free: 11.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000381/0.281, allocations: 399.5 kB / 333.7 MB, free: 11.06 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008344/0.2818, allocations: 0.973 MB / 334.7 MB, free: 10.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2818, allocations: 4 kB / 334.7 MB, free: 10.08 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2818, allocations: 0 / 334.7 MB, free: 10.08 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2818, allocations: 0 / 334.7 MB, free: 10.08 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.001657/0.2835, allocations: 1.138 MB / 335.8 MB, free: 8.891 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2836, allocations: 12.03 kB / 335.8 MB, free: 8.879 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.2837, allocations: 106.7 kB / 336 MB, free: 8.773 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008164/0.2846, allocations: 0.5954 MB / 336.5 MB, free: 8.133 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.2846, allocations: 58 kB / 336.6 MB, free: 8.074 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2847, allocations: 80 kB / 336.7 MB, free: 7.996 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.2861, allocations: 0.8481 MB / 337.5 MB, free: 7.043 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.828e-05/0.2861, allocations: 19.78 kB / 337.6 MB, free: 7.023 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.657e-05/0.2862, allocations: 35.98 kB / 337.6 MB, free: 6.988 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.2862, allocations: 24 kB / 337.6 MB, free: 6.965 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009241/0.2871, allocations: 467.3 kB / 338.1 MB, free: 6.508 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.2915, allocations: 4.408 MB / 342.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007478/0.2923, allocations: 304 kB / 342.8 MB, free: 1.602 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.2926, allocations: 149.3 kB / 342.9 MB, free: 1.453 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003804/0.293, allocations: 166.6 kB / 343.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.293, allocations: 38.88 kB / 343.1 MB, free: 1.207 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 2.345e-06/0.293, allocations: 4 kB / 343.1 MB, free: 1.203 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003323/0.2964, allocations: 1.728 MB / 344.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.2964, allocations: 55.97 kB / 344.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006429/0.2971, allocations: 0.5468 MB / 345.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.2971, allocations: 33.7 kB / 345.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.2974, allocations: 482.4 kB / 346 MB, free: 14.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.2976, allocations: 209 kB / 346.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.2977, allocations: 142.5 kB / 346.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2979, allocations: 378.8 kB / 346.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.2982, allocations: 161.9 kB / 346.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004629/0.2987, allocations: 455.2 kB / 347.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.2995, allocations: 0.6712 MB / 347.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2995, allocations: 0 / 347.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001145/0.3006, allocations: 0.7386 MB / 348.7 MB, free: 11.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.3007, allocations: 11.94 kB / 348.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.3007, allocations: 8 kB / 348.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.3009, allocations: 48.78 kB / 348.7 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005543/0.3015, allocations: 179.7 kB / 348.9 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3028, allocations: 1.522 MB / 350.4 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/0.3033, allocations: 28 kB / 350.5 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-05/0.3034, allocations: 36 kB / 350.5 MB, free: 9.258 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.0003332/0.3037, allocations: 233.5 kB / 350.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.562e-05/0.3038, allocations: 71.22 kB / 350.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.304, allocations: 75.06 kB / 350.9 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.304, allocations: 11.94 kB / 350.9 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.304, allocations: 0 / 350.9 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.304, allocations: 48 / 350.9 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.3059, allocations: 1.435 MB / 352.3 MB, free: 7.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3059, allocations: 4 kB / 352.3 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.3064, allocations: 119.8 kB / 352.4 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.053e-05/0.3065, allocations: 24.84 kB / 352.5 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.3065, allocations: 12 kB / 352.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008345/0.3073, allocations: 1.276 MB / 353.8 MB, free: 5.754 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3074, allocations: 4 kB / 353.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3084, allocations: 0.7801 MB / 354.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3086, allocations: 140.2 kB / 354.7 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.3086, allocations: 12 kB / 354.7 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.3088, allocations: 16 kB / 354.7 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.3089, allocations: 47.88 kB / 354.8 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.309, allocations: 16 kB / 354.8 MB, free: 4.668 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000414/0.3094, allocations: 359.2 kB / 355.1 MB, free: 4.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3094, allocations: 7.938 kB / 355.1 MB, free: 4.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006597/0.3101, allocations: 140 kB / 355.3 MB, free: 4.176 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.0001793/0.3103, allocations: 115.2 kB / 355.4 MB, free: 4.051 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009143/0.3112, allocations: 0.5846 MB / 356 MB, free: 3.457 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3112, allocations: 0 / 356 MB, free: 3.457 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.3116, allocations: 302.5 kB / 356.3 MB, free: 3.148 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.3122, allocations: 103.7 kB / 356.4 MB, free: 3.051 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.3153, allocations: 2.227 MB / 358.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005212/0.3158, allocations: 0.9613 MB / 359.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003158/0.3161, allocations: 85.92 kB / 359.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3163, allocations: 59.42 kB / 359.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3163, allocations: 0 / 359.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Templates: time 0.01133/0.3276, allocations: 5.053 MB / 364.7 MB, free: 10.57 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)