Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001207/0.001206, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002077/0.002077, allocations: 194.4 kB / 16.14 MB, free: 6.66 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.759/1.759, allocations: 205.1 MB / 222 MB, free: 4.75 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.001284/0.001284, allocations: 59.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4025, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009849/0.4124, allocations: 5.938 MB / 330.6 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005991/0.4185, allocations: 1.652 MB / 332.3 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002578/0.4212, allocations: 32.75 kB / 332.3 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.4224, allocations: 183.2 kB / 332.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001778/0.4242, allocations: 177.5 kB / 332.6 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.426, allocations: 443.5 kB / 333.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00321/0.4292, allocations: 1.305 MB / 334.4 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.4306, allocations: 0.5496 MB / 334.9 MB, free: 9.852 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.4319, allocations: 422.1 kB / 335.3 MB, free: 9.438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006823/0.4326, allocations: 477.3 kB / 335.8 MB, free: 8.969 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.4328, allocations: 72 kB / 335.9 MB, free: 8.898 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003341/0.4331, allocations: 83.94 kB / 336 MB, free: 8.816 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.4334, allocations: 219 kB / 336.2 MB, free: 8.602 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007646/0.4341, allocations: 0.5631 MB / 336.7 MB, free: 8.035 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.436, allocations: 1.461 MB / 338.2 MB, free: 6.57 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.436, allocations: 0 / 338.2 MB, free: 6.57 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.436, allocations: 0 / 338.2 MB, free: 6.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.281e-05/0.4361, allocations: 4 kB / 338.2 MB, free: 6.566 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.002775/0.4389, allocations: 1.454 MB / 339.7 MB, free: 5.059 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/0.4389, allocations: 12.03 kB / 339.7 MB, free: 5.047 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.4392, allocations: 138.3 kB / 339.8 MB, free: 4.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.4404, allocations: 0.7275 MB / 340.5 MB, free: 4.141 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.4405, allocations: 90.41 kB / 340.6 MB, free: 4.051 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.4407, allocations: 112 kB / 340.7 MB, free: 3.941 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.4432, allocations: 1.268 MB / 342 MB, free: 2.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/0.4432, allocations: 11.94 kB / 342 MB, free: 2.488 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.4434, allocations: 52 kB / 342.1 MB, free: 2.438 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.939e-05/0.4434, allocations: 31.98 kB / 342.1 MB, free: 2.406 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.445, allocations: 0.689 MB / 342.8 MB, free: 1.715 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007976/0.453, allocations: 6.828 MB / 349.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008559/0.4539, allocations: 269.2 kB / 349.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.4543, allocations: 177.7 kB / 350 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002908/0.4546, allocations: 89.09 kB / 350.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/0.4547, allocations: 38.56 kB / 350.2 MB, free: 9.938 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 5.27e-06/0.4547, allocations: 0 / 350.2 MB, free: 9.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.003431/0.4582, allocations: 1.408 MB / 351.6 MB, free: 8.418 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.4583, allocations: 81.11 kB / 351.7 MB, free: 8.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.4593, allocations: 0.653 MB / 352.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.4594, allocations: 33.7 kB / 352.3 MB, free: 7.617 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006425/0.46, allocations: 0.6797 MB / 353 MB, free: 6.926 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.4602, allocations: 114.5 kB / 353.1 MB, free: 6.812 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.4605, allocations: 154.3 kB / 353.3 MB, free: 6.656 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002586/0.4607, allocations: 386.8 kB / 353.7 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003154/0.461, allocations: 145.9 kB / 353.8 MB, free: 6.125 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007361/0.4618, allocations: 0.5546 MB / 354.4 MB, free: 5.375 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.00139/0.4632, allocations: 0.9493 MB / 355.3 MB, free: 4.191 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.4632, allocations: 4 kB / 355.3 MB, free: 4.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001534/0.4648, allocations: 0.7876 MB / 356.1 MB, free: 3.387 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.4648, allocations: 12.12 kB / 356.1 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.401e-05/0.4648, allocations: 16 kB / 356.1 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003671/0.4652, allocations: 85.62 kB / 356.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.4658, allocations: 179.7 kB / 356.4 MB, free: 3.094 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003255/0.4691, allocations: 2.99 MB / 359.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.4697, allocations: 32 kB / 359.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.653e-05/0.4698, allocations: 40 kB / 359.5 MB, free: 15.77 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.000659/0.4704, allocations: 274.1 kB / 359.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.4706, allocations: 71.16 kB / 359.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.4707, allocations: 74.34 kB / 359.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.4707, allocations: 4 kB / 359.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.4707, allocations: 0 / 359.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4707, allocations: 7.922 kB / 359.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.4729, allocations: 1.251 MB / 361.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.473, allocations: 4 kB / 361.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000335/0.4733, allocations: 67.89 kB / 361.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/0.4735, allocations: 57.72 kB / 361.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.4736, allocations: 11.98 kB / 361.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003196/0.4768, allocations: 2.783 MB / 364 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4768, allocations: 0 / 364 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.4781, allocations: 0.635 MB / 364.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.4783, allocations: 144.2 kB / 364.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.459e-05/0.4784, allocations: 4 kB / 364.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.4787, allocations: 19.98 kB / 364.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.4788, allocations: 27.84 kB / 364.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.4789, allocations: 11.98 kB / 364.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007741/0.4796, allocations: 435 kB / 365.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.4797, allocations: 0 / 365.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001355/0.481, allocations: 160 kB / 365.5 MB, free: 9.348 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.0002813/0.4813, allocations: 111.2 kB / 365.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.4829, allocations: 0.6488 MB / 366.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.483, allocations: 4 kB / 366.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.4835, allocations: 357.1 kB / 366.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.4842, allocations: 83.41 kB / 366.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004583/0.4887, allocations: 2.337 MB / 369 MB, free: 5.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008019/0.4896, allocations: 1.03 MB / 370 MB, free: 4.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003854/0.49, allocations: 90.02 kB / 370.1 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.4901, allocations: 51.42 kB / 370.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.414e-06/0.4902, allocations: 4 kB / 370.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of Templates: time 0.01427/0.5044, allocations: 5.172 MB / 375.3 MB, free: 15.34 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)