Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.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.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 110.1 kB / 16.51 MB, free: 6.707 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.001845/0.001845, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.859/1.859, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001307/0.001307, allocations: 47.92 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1447, allocations: 46.63 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008726/0.1535, allocations: 5.941 MB / 331.9 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005737/0.1593, allocations: 1.656 MB / 333.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.1619, allocations: 27.88 kB / 333.6 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009625/0.1629, allocations: 186.5 kB / 333.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.1642, allocations: 166.5 kB / 333.9 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.1657, allocations: 455.6 kB / 334.4 MB, free: 12.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001969/0.1677, allocations: 1.298 MB / 335.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009665/0.1687, allocations: 0.5452 MB / 336.2 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006865/0.1694, allocations: 422.1 kB / 336.6 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005659/0.1699, allocations: 489.1 kB / 337.1 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.1701, allocations: 76 kB / 337.2 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002518/0.1704, allocations: 84 kB / 337.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.1706, allocations: 215 kB / 337.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006092/0.1712, allocations: 0.5631 MB / 338 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.1728, allocations: 1.452 MB / 339.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1728, allocations: 4 kB / 339.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1728, allocations: 0 / 339.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.195e-05/0.1729, allocations: 0 / 339.5 MB, free: 7.262 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002931/0.1758, allocations: 1.454 MB / 340.9 MB, free: 5.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.1759, allocations: 12.03 kB / 341 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.1761, allocations: 138.3 kB / 341.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.1773, allocations: 0.7236 MB / 341.8 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.59e-05/0.1774, allocations: 90.41 kB / 341.9 MB, free: 4.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.1775, allocations: 120 kB / 342 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.1797, allocations: 1.26 MB / 343.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.1797, allocations: 11.88 kB / 343.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.952e-05/0.1798, allocations: 52 kB / 343.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.161e-05/0.1799, allocations: 35.98 kB / 343.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.1813, allocations: 0.6968 MB / 344.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.1916, allocations: 6.82 MB / 350.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.193, allocations: 265.3 kB / 351.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007744/0.1938, allocations: 181.6 kB / 351.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004609/0.1943, allocations: 89.09 kB / 351.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.732e-05/0.1944, allocations: 38.5 kB / 351.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 6.613e-06/0.1944, allocations: 0 / 351.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00534/0.1998, allocations: 1.401 MB / 352.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.1999, allocations: 81.11 kB / 352.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.2018, allocations: 0.6569 MB / 353.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.063e-05/0.2019, allocations: 33.7 kB / 353.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008134/0.2027, allocations: 0.6836 MB / 354.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.2029, allocations: 114.5 kB / 354.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/0.2032, allocations: 142.5 kB / 354.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002642/0.2035, allocations: 386.8 kB / 354.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.2039, allocations: 145.9 kB / 355.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.205, allocations: 0.5546 MB / 355.6 MB, free: 6.082 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.2076, allocations: 0.9586 MB / 356.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-05/0.2076, allocations: 4 kB / 356.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003853/0.2115, allocations: 0.7909 MB / 357.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.386e-05/0.2116, allocations: 12 kB / 357.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.532e-05/0.2116, allocations: 12 kB / 357.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.2122, allocations: 82.38 kB / 357.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.2133, allocations: 187.7 kB / 357.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004291/0.2176, allocations: 2.982 MB / 360.7 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.2187, allocations: 32 kB / 360.7 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.2189, allocations: 44 kB / 360.7 MB, free: 480 kB / 302.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001072/0.22, allocations: 277.2 kB / 361 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/0.2204, allocations: 71.06 kB / 361.1 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.2206, allocations: 78.34 kB / 361.1 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.2207, allocations: 4 kB / 361.1 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/0.2207, allocations: 4.062 kB / 361.2 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.2207, allocations: 3.984 kB / 361.2 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003776/0.2245, allocations: 1.243 MB / 362.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.2246, allocations: 0 / 362.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.2251, allocations: 71.89 kB / 362.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.2255, allocations: 53.62 kB / 362.5 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/0.2256, allocations: 11.98 kB / 362.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.2295, allocations: 2.787 MB / 365.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.2296, allocations: 7.969 kB / 365.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.2314, allocations: 0.6388 MB / 366 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003383/0.2317, allocations: 136.2 kB / 366.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.2319, allocations: 11.94 kB / 366.1 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.2325, allocations: 23.98 kB / 366.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.2326, allocations: 19.91 kB / 366.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.2327, allocations: 19.92 kB / 366.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.2339, allocations: 431 kB / 366.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2339, allocations: 0 / 366.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001909/0.2358, allocations: 160 kB / 366.8 MB, free: 10.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003244/0.2362, allocations: 115.9 kB / 366.9 MB, free: 9.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.2384, allocations: 0.6392 MB / 367.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.2384, allocations: 0 / 367.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008982/0.2393, allocations: 365.6 kB / 367.9 MB, free: 8.871 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.2405, allocations: 79.55 kB / 367.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006944/0.2475, allocations: 2.325 MB / 370.3 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.2489, allocations: 1.038 MB / 371.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.2496, allocations: 90 kB / 371.4 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.2499, allocations: 59.42 kB / 371.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.2499, allocations: 0 / 371.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of Templates: time 0.02421/0.2742, allocations: 5.179 MB / 376.6 MB, free: 36 kB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)