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.001057/0.001057, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001513/0.001513, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.0008082/0.0008085, allocations: 8 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4077, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00728/0.4151, allocations: 5.113 MB / 331.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004586/0.4197, allocations: 1.614 MB / 333.2 MB, free: 12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.4211, allocations: 28.25 kB / 333.2 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006068/0.4217, allocations: 176.4 kB / 333.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006796/0.4224, allocations: 172.7 kB / 333.6 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.4237, allocations: 331.7 kB / 333.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.4259, allocations: 1.226 MB / 335.1 MB, free: 10.69 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009197/0.4268, allocations: 467.8 kB / 335.6 MB, free: 10.4 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006489/0.4275, allocations: 355.6 kB / 335.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004687/0.428, allocations: 393.7 kB / 336.3 MB, free: 9.668 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.24e-05/0.4281, allocations: 52 kB / 336.4 MB, free: 9.617 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000219/0.4283, allocations: 63.98 kB / 336.4 MB, free: 9.555 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.4285, allocations: 171.2 kB / 336.6 MB, free: 9.387 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002407/0.4287, allocations: 245 kB / 336.8 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.43, allocations: 1.158 MB / 338 MB, free: 7.98 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.43, allocations: 0 / 338 MB, free: 7.98 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.43, allocations: 0 / 338 MB, free: 7.98 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.43, allocations: 0 / 338 MB, free: 7.98 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.002466/0.4325, allocations: 1.248 MB / 339.2 MB, free: 6.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.4326, allocations: 8.031 kB / 339.2 MB, free: 6.672 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.4328, allocations: 142.3 kB / 339.4 MB, free: 6.531 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.4339, allocations: 0.6931 MB / 340.1 MB, free: 5.797 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.434, allocations: 90.36 kB / 340.2 MB, free: 5.707 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.4341, allocations: 119.9 kB / 340.3 MB, free: 5.59 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.4361, allocations: 1.26 MB / 341.5 MB, free: 4.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.4362, allocations: 3.938 kB / 341.5 MB, free: 4.156 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.4363, allocations: 56 kB / 341.6 MB, free: 4.102 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-05/0.4364, allocations: 32 kB / 341.6 MB, free: 4.07 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.4376, allocations: 0.6929 MB / 342.3 MB, free: 3.375 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006768/0.4444, allocations: 6.828 MB / 349.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007766/0.4452, allocations: 269.2 kB / 349.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.4456, allocations: 185.7 kB / 349.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002207/0.4459, allocations: 85.09 kB / 349.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.4459, allocations: 43 kB / 349.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 5.761e-06/0.4459, allocations: 0 / 349.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.003015/0.449, allocations: 1.408 MB / 351.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.4491, allocations: 81.11 kB / 351.2 MB, free: 9.969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009045/0.45, allocations: 0.6568 MB / 351.9 MB, free: 9.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.45, allocations: 29.7 kB / 351.9 MB, free: 9.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005889/0.4506, allocations: 0.6759 MB / 352.6 MB, free: 8.582 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4507, allocations: 122.4 kB / 352.7 MB, free: 8.461 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.4508, allocations: 20 kB / 352.7 MB, free: 8.441 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.451, allocations: 382.8 kB / 353.1 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.4513, allocations: 141.9 kB / 353.2 MB, free: 7.922 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006099/0.4519, allocations: 0.5546 MB / 353.8 MB, free: 7.172 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.0006717/0.4526, allocations: 441.9 kB / 354.2 MB, free: 6.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.4526, allocations: 4 kB / 354.2 MB, free: 6.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001364/0.454, allocations: 0.794 MB / 355 MB, free: 5.895 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.4541, allocations: 12 kB / 355 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.4541, allocations: 15.98 kB / 355 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.4544, allocations: 89.62 kB / 355.1 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.4549, allocations: 179.7 kB / 355.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.4578, allocations: 2.978 MB / 358.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.4582, allocations: 35.98 kB / 358.3 MB, free: 2.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.414e-05/0.4583, allocations: 48.06 kB / 358.3 MB, free: 2.266 MB / 286.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004661/0.4588, allocations: 273.5 kB / 358.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.4589, allocations: 75.06 kB / 358.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.459, allocations: 70.42 kB / 358.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.459, allocations: 7.984 kB / 358.8 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-05/0.4591, allocations: 3.953 kB / 358.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.4591, allocations: 3.938 kB / 358.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.4609, allocations: 1.259 MB / 360 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.4609, allocations: 0 / 360 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.4613, allocations: 64 kB / 360.1 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.4614, allocations: 65.66 kB / 360.2 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.4615, allocations: 4 kB / 360.2 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/0.4644, allocations: 2.779 MB / 362.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.4645, allocations: 4.031 kB / 362.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4655, allocations: 0.6506 MB / 363.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.4657, allocations: 140.2 kB / 363.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.779e-05/0.4657, allocations: 4.062 kB / 363.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.466, allocations: 19.98 kB / 363.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.4661, allocations: 31.86 kB / 363.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.4661, allocations: 16 kB / 363.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005645/0.4667, allocations: 427 kB / 364.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4667, allocations: 0 / 364.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001089/0.4678, allocations: 156 kB / 364.4 MB, free: 11.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002303/0.468, allocations: 115.2 kB / 364.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.4692, allocations: 0.652 MB / 365.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4692, allocations: 1.312 kB / 365.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.4697, allocations: 381.3 kB / 365.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.4702, allocations: 75.3 kB / 365.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.4739, allocations: 2.33 MB / 367.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/0.4748, allocations: 1.038 MB / 369 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003446/0.4751, allocations: 82.03 kB / 369 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.4753, allocations: 55.42 kB / 369.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4753, allocations: 0 / 369.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of Templates: time 0.01264/0.4879, allocations: 5.015 MB / 374.1 MB, free: 1.977 MB / 302.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)