Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001416/0.001416, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001491/0.001491, allocations: 186.6 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.00125/0.00125, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4473/0.4485, allocations: 46.62 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009426/0.458, allocations: 5.934 MB / 330.8 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006113/0.4642, allocations: 1.65 MB / 332.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.4669, allocations: 33.53 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.4682, allocations: 191.7 kB / 332.6 MB, free: 11.63 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001983/0.4702, allocations: 176.9 kB / 332.8 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.4721, allocations: 440.7 kB / 333.3 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003446/0.4755, allocations: 1.393 MB / 334.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.4768, allocations: 0.6169 MB / 335.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.4781, allocations: 486.1 kB / 335.7 MB, free: 9.148 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007051/0.4788, allocations: 497.3 kB / 336.2 MB, free: 8.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.479, allocations: 124 kB / 336.3 MB, free: 8.539 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003092/0.4793, allocations: 136 kB / 336.5 MB, free: 8.406 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.4795, allocations: 275 kB / 336.7 MB, free: 8.137 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006707/0.4802, allocations: 0.6061 MB / 337.3 MB, free: 7.527 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.4824, allocations: 1.558 MB / 338.9 MB, free: 5.965 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.4824, allocations: 0 / 338.9 MB, free: 5.965 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4824, allocations: 0 / 338.9 MB, free: 5.965 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.325e-05/0.4824, allocations: 0 / 338.9 MB, free: 5.965 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002799/0.4853, allocations: 1.466 MB / 340.4 MB, free: 4.445 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.4853, allocations: 8.031 kB / 340.4 MB, free: 4.438 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.4857, allocations: 142.3 kB / 340.5 MB, free: 4.297 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/0.487, allocations: 0.7197 MB / 341.2 MB, free: 3.531 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.4871, allocations: 86.41 kB / 341.3 MB, free: 3.445 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/0.4873, allocations: 124 kB / 341.4 MB, free: 3.324 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.4897, allocations: 1.264 MB / 342.7 MB, free: 1.887 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.204e-05/0.4898, allocations: 7.938 kB / 342.7 MB, free: 1.879 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.4899, allocations: 56 kB / 342.8 MB, free: 1.824 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-05/0.49, allocations: 35.94 kB / 342.8 MB, free: 1.789 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.4913, allocations: 0.689 MB / 343.5 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008035/0.4994, allocations: 6.82 MB / 350.3 MB, free: 9.945 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008353/0.5003, allocations: 273.5 kB / 350.6 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004082/0.5007, allocations: 185.8 kB / 350.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003004/0.501, allocations: 85.09 kB / 350.8 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.241e-05/0.5011, allocations: 42.56 kB / 350.9 MB, free: 9.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 2.805e-06/0.5011, allocations: 0 / 350.9 MB, free: 9.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.003101/0.5042, allocations: 1.396 MB / 352.3 MB, free: 7.812 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.582e-05/0.5043, allocations: 85.11 kB / 352.4 MB, free: 7.711 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009909/0.5053, allocations: 0.6569 MB / 353 MB, free: 7.039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.5054, allocations: 29.7 kB / 353.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005555/0.5059, allocations: 0.6836 MB / 353.7 MB, free: 6.309 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.5061, allocations: 118.5 kB / 353.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.5063, allocations: 146.4 kB / 354 MB, free: 6.043 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002916/0.5066, allocations: 382.8 kB / 354.4 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.5069, allocations: 145.9 kB / 354.5 MB, free: 5.516 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006577/0.5076, allocations: 0.5506 MB / 355.1 MB, free: 4.77 MB / 286.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.001394/0.509, allocations: 0.9533 MB / 356 MB, free: 3.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.509, allocations: 4 kB / 356 MB, free: 3.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001524/0.5105, allocations: 0.7912 MB / 356.8 MB, free: 2.773 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.5106, allocations: 12 kB / 356.8 MB, free: 2.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.5106, allocations: 16 kB / 356.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003497/0.511, allocations: 86.36 kB / 356.9 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005554/0.5115, allocations: 183.7 kB / 357.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/0.5153, allocations: 3.328 MB / 360.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.516, allocations: 32.19 kB / 360.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.5161, allocations: 40 kB / 360.5 MB, free: 14.8 MB / 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.0006628/0.5168, allocations: 277.5 kB / 360.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.5169, allocations: 75.05 kB / 360.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.5171, allocations: 74.41 kB / 360.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.5171, allocations: 0 / 360.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.5171, allocations: 4 kB / 360.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.5171, allocations: 0 / 360.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002006/0.5191, allocations: 1.255 MB / 362.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5191, allocations: 0 / 362.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.5195, allocations: 79.92 kB / 362.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.5197, allocations: 49.69 kB / 362.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.5197, allocations: 11.98 kB / 362.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.5225, allocations: 3.057 MB / 365.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5225, allocations: 0 / 365.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.5235, allocations: 0.6351 MB / 366 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.5237, allocations: 144.2 kB / 366.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.5238, allocations: 4 kB / 366.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.5241, allocations: 19.98 kB / 366.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5242, allocations: 31.78 kB / 366.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.5242, allocations: 8 kB / 366.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000685/0.5249, allocations: 439 kB / 366.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5249, allocations: 4 kB / 366.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001199/0.5261, allocations: 156 kB / 366.8 MB, free: 8.09 MB / 302.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.0002229/0.5264, allocations: 115.1 kB / 366.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.5277, allocations: 0.6602 MB / 367.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5277, allocations: 3.938 kB / 367.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005904/0.5283, allocations: 353.3 kB / 367.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006634/0.529, allocations: 83.97 kB / 368 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/0.5336, allocations: 2.326 MB / 370.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008462/0.5345, allocations: 1.042 MB / 371.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003918/0.5349, allocations: 82.02 kB / 371.4 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.5351, allocations: 63.41 kB / 371.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of SimCode: time 2.605e-06/0.5351, allocations: 3.938 kB / 371.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of Templates: time 0.01459/0.5497, allocations: 5.361 MB / 376.9 MB, free: 13.88 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)