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.00123/0.00123, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.554/1.554, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001196/0.001196, allocations: 51.94 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2959, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005613/0.3016, allocations: 4.557 MB / 329.9 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003098/0.3047, allocations: 1.376 MB / 331.2 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004297/0.3052, allocations: 25.56 kB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.3056, allocations: 177 kB / 331.4 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000361/0.306, allocations: 167.2 kB / 331.6 MB, free: 12.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008577/0.3069, allocations: 361.8 kB / 332 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.308, allocations: 0.971 MB / 332.9 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006554/0.3087, allocations: 420.8 kB / 333.3 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000493/0.3092, allocations: 330.5 kB / 333.7 MB, free: 11.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.3096, allocations: 346.8 kB / 334 MB, free: 11.13 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.3098, allocations: 72.97 kB / 334.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.31, allocations: 112 kB / 334.2 MB, free: 11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.3102, allocations: 179.3 kB / 334.4 MB, free: 10.82 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003462/0.3105, allocations: 425.5 kB / 334.8 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.3116, allocations: 1.051 MB / 335.8 MB, free: 9.352 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3116, allocations: 0 / 335.8 MB, free: 9.352 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3116, allocations: 0 / 335.8 MB, free: 9.352 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.3117, allocations: 0 / 335.8 MB, free: 9.352 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.001639/0.3133, allocations: 1.142 MB / 337 MB, free: 8.16 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3133, allocations: 11.97 kB / 337 MB, free: 8.148 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.3135, allocations: 106.7 kB / 337.1 MB, free: 8.043 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.3143, allocations: 0.5954 MB / 337.7 MB, free: 7.406 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.192e-05/0.3143, allocations: 62 kB / 337.7 MB, free: 7.344 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.3144, allocations: 76 kB / 337.8 MB, free: 7.27 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.3157, allocations: 0.8442 MB / 338.7 MB, free: 6.32 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.844e-05/0.3158, allocations: 19.83 kB / 338.7 MB, free: 6.301 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/0.3158, allocations: 36 kB / 338.7 MB, free: 6.266 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.3159, allocations: 20 kB / 338.7 MB, free: 6.246 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008555/0.3167, allocations: 475.3 kB / 339.2 MB, free: 5.781 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.3204, allocations: 4.408 MB / 343.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.321, allocations: 296 kB / 343.9 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.3212, allocations: 149.3 kB / 344 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002795/0.3215, allocations: 170.5 kB / 344.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3216, allocations: 38.94 kB / 344.2 MB, free: 496 kB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 2.134e-06/0.3216, allocations: 0 / 344.2 MB, free: 496 kB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003276/0.3249, allocations: 1.728 MB / 346 MB, free: 14.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.3249, allocations: 63.97 kB / 346 MB, free: 14.58 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000577/0.3255, allocations: 0.5429 MB / 346.6 MB, free: 14.03 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.3255, allocations: 37.7 kB / 346.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003083/0.3259, allocations: 474.4 kB / 347.1 MB, free: 13.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.326, allocations: 209 kB / 347.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.3262, allocations: 142.5 kB / 347.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3263, allocations: 382.8 kB / 347.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.3266, allocations: 165.9 kB / 347.9 MB, free: 12.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.3271, allocations: 455.2 kB / 348.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008088/0.328, allocations: 0.6634 MB / 349.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.328, allocations: 7.984 kB / 349.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001074/0.3291, allocations: 0.738 MB / 349.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3291, allocations: 8 kB / 349.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.3291, allocations: 12 kB / 349.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.3293, allocations: 40.84 kB / 349.9 MB, free: 10.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.3298, allocations: 188.2 kB / 350 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.3313, allocations: 1.693 MB / 351.7 MB, free: 8.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.3316, allocations: 35.92 kB / 351.8 MB, free: 8.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.509e-05/0.3316, allocations: 36 kB / 351.8 MB, free: 8.34 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.0002888/0.3319, allocations: 229.6 kB / 352 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.525e-05/0.332, allocations: 71.09 kB / 352.1 MB, free: 8.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.3321, allocations: 71.08 kB / 352.2 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3321, allocations: 12 kB / 352.2 MB, free: 7.949 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.3322, allocations: 4 kB / 352.2 MB, free: 7.945 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.3322, allocations: 3.984 kB / 352.2 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.334, allocations: 1.427 MB / 353.6 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.334, allocations: 4 kB / 353.6 MB, free: 6.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.3345, allocations: 119.8 kB / 353.7 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.386e-05/0.3345, allocations: 20.86 kB / 353.8 MB, free: 6.266 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.3346, allocations: 12 kB / 353.8 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009005/0.3355, allocations: 1.382 MB / 355.2 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3355, allocations: 4 kB / 355.2 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.3365, allocations: 0.7723 MB / 355.9 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.3366, allocations: 144.1 kB / 356.1 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.3367, allocations: 16 kB / 356.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.3369, allocations: 12 kB / 356.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.582e-05/0.337, allocations: 48.08 kB / 356.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.337, allocations: 15.98 kB / 356.2 MB, free: 3.656 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004179/0.3375, allocations: 367 kB / 356.5 MB, free: 3.301 MB / 286.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3375, allocations: 0 / 356.5 MB, free: 3.301 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006276/0.3381, allocations: 136 kB / 356.7 MB, free: 3.168 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.0001762/0.3383, allocations: 127.2 kB / 356.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3395, allocations: 0.604 MB / 357.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3395, allocations: 0 / 357.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.3399, allocations: 310.5 kB / 357.7 MB, free: 2.098 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00064/0.3406, allocations: 95.78 kB / 357.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.3435, allocations: 1.875 MB / 359.7 MB, free: 72 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.3441, allocations: 0.9691 MB / 360.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002561/0.3444, allocations: 77.94 kB / 360.7 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.3445, allocations: 59.42 kB / 360.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3445, allocations: 0 / 360.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01103/0.3556, allocations: 5.278 MB / 366 MB, free: 9.656 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)