Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009969/0.0009971, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008602/0.008603, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.543/1.543, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004835/0.0004836, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2475, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004266/0.2518, allocations: 4.139 MB / 331.2 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003307/0.2552, allocations: 1.337 MB / 332.5 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007547/0.256, allocations: 20.56 kB / 332.5 MB, free: 12.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000378/0.2563, allocations: 133.9 kB / 332.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005437/0.2569, allocations: 130.4 kB / 332.8 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008705/0.2578, allocations: 318.2 kB / 333.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.2589, allocations: 0.9124 MB / 334 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006536/0.2596, allocations: 373.7 kB / 334.4 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.2601, allocations: 264.5 kB / 334.6 MB, free: 11.56 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.2605, allocations: 291.4 kB / 334.9 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.486e-05/0.2606, allocations: 27.59 kB / 334.9 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.2608, allocations: 61.52 kB / 335 MB, free: 11.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.261, allocations: 125.3 kB / 335.1 MB, free: 11.22 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003558/0.2613, allocations: 395.3 kB / 335.5 MB, free: 10.83 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009802/0.2623, allocations: 0.9415 MB / 336.5 MB, free: 9.883 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.2623, allocations: 0 / 336.5 MB, free: 9.883 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.2624, allocations: 0 / 336.5 MB, free: 9.883 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.2624, allocations: 0 / 336.5 MB, free: 9.883 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.001905/0.2643, allocations: 0.9781 MB / 337.4 MB, free: 8.855 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.2644, allocations: 12.03 kB / 337.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.2645, allocations: 102.8 kB / 337.5 MB, free: 8.742 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008429/0.2654, allocations: 0.5993 MB / 338.1 MB, free: 8.098 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/0.2654, allocations: 58 kB / 338.2 MB, free: 8.039 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.2656, allocations: 83.91 kB / 338.3 MB, free: 7.957 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.267, allocations: 0.8521 MB / 339.1 MB, free: 7 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.267, allocations: 7.938 kB / 339.1 MB, free: 6.992 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.256e-05/0.2671, allocations: 35.98 kB / 339.2 MB, free: 6.957 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.2671, allocations: 20 kB / 339.2 MB, free: 6.938 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009367/0.2681, allocations: 479.3 kB / 339.7 MB, free: 6.469 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00465/0.2728, allocations: 4.412 MB / 344.1 MB, free: 1.863 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006056/0.2734, allocations: 307.9 kB / 344.4 MB, free: 1.555 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002545/0.2736, allocations: 149.2 kB / 344.5 MB, free: 1.406 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.2739, allocations: 174.6 kB / 344.7 MB, free: 1.199 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.2739, allocations: 30.94 kB / 344.7 MB, free: 1.16 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 2.986e-06/0.2739, allocations: 0 / 344.7 MB, free: 1.16 MB / 270.1 MB Notification: Performance of matching and sorting (n=57): time 0.003643/0.2776, allocations: 1.751 MB / 346.5 MB, free: 15.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.2776, allocations: 55.97 kB / 346.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.2783, allocations: 0.5391 MB / 347.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.2784, allocations: 41.69 kB / 347.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.2787, allocations: 474.4 kB / 347.6 MB, free: 14.18 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.2789, allocations: 216.9 kB / 347.8 MB, free: 13.96 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/0.279, allocations: 69.69 kB / 347.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.2792, allocations: 378.8 kB / 348.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.2795, allocations: 165.9 kB / 348.4 MB, free: 13.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.28, allocations: 463.2 kB / 348.8 MB, free: 12.76 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008304/0.2808, allocations: 0.6634 MB / 349.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2809, allocations: 4 kB / 349.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001111/0.282, allocations: 0.7378 MB / 350.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.282, allocations: 12 kB / 350.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.282, allocations: 11.94 kB / 350.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001805/0.2822, allocations: 49.56 kB / 350.3 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005405/0.2828, allocations: 187.7 kB / 350.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.284, allocations: 1.514 MB / 352 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.2843, allocations: 40.05 kB / 352 MB, free: 9.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.2844, allocations: 32 kB / 352.1 MB, free: 9.242 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.0002901/0.2847, allocations: 229.6 kB / 352.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.05e-05/0.2847, allocations: 67.16 kB / 352.4 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.2849, allocations: 75.08 kB / 352.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2849, allocations: 7.938 kB / 352.4 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.2849, allocations: 3.938 kB / 352.5 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2849, allocations: 7.984 kB / 352.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/0.2868, allocations: 1.439 MB / 353.9 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2868, allocations: 0 / 353.9 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004512/0.2873, allocations: 119.8 kB / 354 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.101e-05/0.2874, allocations: 24.92 kB / 354 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.2874, allocations: 16 kB / 354.1 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007964/0.2882, allocations: 1.276 MB / 355.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2882, allocations: 0 / 355.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009994/0.2892, allocations: 0.784 MB / 356.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.2893, allocations: 144.2 kB / 356.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/0.2894, allocations: 16.19 kB / 356.3 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.2896, allocations: 8 kB / 356.3 MB, free: 4.707 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.953e-05/0.2897, allocations: 51.83 kB / 356.3 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.2897, allocations: 19.98 kB / 356.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003957/0.2901, allocations: 359.1 kB / 356.7 MB, free: 4.289 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2901, allocations: 0 / 356.7 MB, free: 4.289 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.2908, allocations: 140 kB / 356.8 MB, free: 4.152 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.0001399/0.2909, allocations: 119.2 kB / 357 MB, free: 4.023 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.2918, allocations: 0.5847 MB / 357.5 MB, free: 3.43 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2919, allocations: 3.938 kB / 357.5 MB, free: 3.426 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.2923, allocations: 310.5 kB / 357.8 MB, free: 3.109 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008085/0.2931, allocations: 103.9 kB / 357.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.296, allocations: 2.38 MB / 360.3 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.2965, allocations: 0.9691 MB / 361.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.2968, allocations: 85.92 kB / 361.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.2969, allocations: 55.42 kB / 361.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2969, allocations: 0 / 361.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01037/0.3073, allocations: 5.028 MB / 366.5 MB, free: 10.4 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)