Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001098/0.001098, allocations: 109.9 kB / 17.06 MB, free: 5.973 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.001331/0.001331, allocations: 200 kB / 18.01 MB, free: 5.055 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 / 223.9 MB, free: 12.21 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.001305/0.001305, allocations: 51.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1002, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.2345/0.3348, allocations: 4.558 MB / 379 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003054/0.3379, allocations: 1.367 MB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004606/0.3384, allocations: 24.75 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004312/0.3388, allocations: 177.2 kB / 380.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.3393, allocations: 161.3 kB / 380.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009351/0.3402, allocations: 369.8 kB / 381.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.3413, allocations: 0.9753 MB / 382.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006707/0.3419, allocations: 431 kB / 382.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004972/0.3425, allocations: 329.9 kB / 382.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.3428, allocations: 351.8 kB / 383.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.3429, allocations: 71.25 kB / 383.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002782/0.3432, allocations: 120.5 kB / 383.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.3434, allocations: 168.2 kB / 383.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.3437, allocations: 424.4 kB / 383.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.345, allocations: 1.106 MB / 385.1 MB, free: 8.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.345, allocations: 0 / 385.1 MB, free: 8.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.345, allocations: 0 / 385.1 MB, free: 8.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.345, allocations: 1.562 kB / 385.1 MB, free: 8.176 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.001511/0.3465, allocations: 1.133 MB / 386.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3466, allocations: 9.562 kB / 386.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.3467, allocations: 102.7 kB / 386.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009994/0.3477, allocations: 0.6299 MB / 386.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.76e-05/0.3478, allocations: 62.69 kB / 387 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3479, allocations: 84.3 kB / 387.1 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.3492, allocations: 0.8504 MB / 387.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.7e-05/0.3492, allocations: 8.719 kB / 387.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.479e-05/0.3493, allocations: 37.62 kB / 388 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.3493, allocations: 21.03 kB / 388 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009171/0.3503, allocations: 478.5 kB / 388.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.3535, allocations: 4.361 MB / 392.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.3541, allocations: 305.4 kB / 393.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.3544, allocations: 149.5 kB / 393.3 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001761/0.3546, allocations: 170.6 kB / 393.4 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.3546, allocations: 38.23 kB / 393.5 MB, free: 2.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.933e-06/0.3546, allocations: 0 / 393.5 MB, free: 2.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003517/0.3581, allocations: 1.73 MB / 395.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.3582, allocations: 57.84 kB / 395.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007174/0.3589, allocations: 0.5401 MB / 395.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3589, allocations: 31.45 kB / 395.8 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.3592, allocations: 481.4 kB / 396.3 MB, free: 248 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.3593, allocations: 210.7 kB / 396.5 MB, free: 84 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.3595, allocations: 140.2 kB / 396.6 MB, free: 4 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.3597, allocations: 378.7 kB / 397 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.3601, allocations: 168 kB / 397.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.3606, allocations: 463.7 kB / 397.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.3616, allocations: 0.6661 MB / 398.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.3617, allocations: 3.656 kB / 398.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001512/0.3632, allocations: 0.741 MB / 399 MB, free: 14.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.3632, allocations: 10 kB / 399 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.3633, allocations: 8.875 kB / 399 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002238/0.3635, allocations: 47.59 kB / 399.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006569/0.3642, allocations: 183.2 kB / 399.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/0.3662, allocations: 1.692 MB / 401 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004083/0.3666, allocations: 25.05 kB / 401 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.3667, allocations: 43.33 kB / 401 MB, free: 12.56 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.0003953/0.3671, allocations: 232.7 kB / 401.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3672, allocations: 73.38 kB / 401.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.3673, allocations: 76.66 kB / 401.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3674, allocations: 10.38 kB / 401.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3674, allocations: 1.156 kB / 401.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.3674, allocations: 4.125 kB / 401.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3696, allocations: 1.411 MB / 402.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3696, allocations: 2.75 kB / 402.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.3701, allocations: 113.4 kB / 402.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.3702, allocations: 24.14 kB / 403 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.3703, allocations: 15.39 kB / 403 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.3716, allocations: 1.375 MB / 404.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.3716, allocations: 3.281 kB / 404.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3729, allocations: 0.7764 MB / 405.1 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.373, allocations: 138.3 kB / 405.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.3731, allocations: 14.11 kB / 405.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.3733, allocations: 14.81 kB / 405.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3734, allocations: 51.59 kB / 405.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.838e-05/0.3734, allocations: 17.64 kB / 405.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004904/0.3739, allocations: 364.1 kB / 405.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3739, allocations: 0 / 405.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007673/0.3747, allocations: 137.6 kB / 405.9 MB, free: 9.133 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.0001761/0.3749, allocations: 126.5 kB / 406 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.376, allocations: 0.593 MB / 406.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.376, allocations: 0 / 406.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000496/0.3765, allocations: 309.2 kB / 406.9 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.3772, allocations: 106 kB / 407 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.3804, allocations: 1.845 MB / 408.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.3812, allocations: 0.964 MB / 409.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003509/0.3816, allocations: 86.67 kB / 409.9 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3818, allocations: 60.05 kB / 409.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3818, allocations: 3.938 kB / 409.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of Templates: time 0.01328/0.3951, allocations: 5.542 MB / 415.5 MB, free: 4 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)