Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001424/0.001424, allocations: 192.6 kB / 16.14 MB, free: 6.707 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.713/1.713, allocations: 205.1 MB / 222 MB, free: 4.77 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.001519/0.00152, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4142, allocations: 46.62 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.009514/0.4238, allocations: 5.339 MB / 330 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006157/0.43, allocations: 1.456 MB / 331.5 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.4317, allocations: 25.22 kB / 331.5 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008548/0.4327, allocations: 162 kB / 331.7 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.4339, allocations: 159.4 kB / 331.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.4352, allocations: 336.9 kB / 332.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001936/0.4371, allocations: 1.069 MB / 333.2 MB, free: 11.26 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008679/0.438, allocations: 428.4 kB / 333.6 MB, free: 10.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007499/0.4388, allocations: 367.8 kB / 334 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005259/0.4393, allocations: 423.3 kB / 334.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.4395, allocations: 56 kB / 334.5 MB, free: 10.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.4397, allocations: 68 kB / 334.5 MB, free: 10.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.4399, allocations: 187.1 kB / 334.7 MB, free: 10.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004892/0.4404, allocations: 485 kB / 335.2 MB, free: 9.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.4416, allocations: 1.036 MB / 336.2 MB, free: 8.551 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.4417, allocations: 0 / 336.2 MB, free: 8.551 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4417, allocations: 0 / 336.2 MB, free: 8.551 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.4417, allocations: 0 / 336.2 MB, free: 8.551 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002445/0.4441, allocations: 1.309 MB / 337.5 MB, free: 7.188 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.956e-05/0.4442, allocations: 8.031 kB / 337.5 MB, free: 7.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.4445, allocations: 130.4 kB / 337.7 MB, free: 7.051 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.4455, allocations: 0.6068 MB / 338.3 MB, free: 6.398 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.805e-05/0.4456, allocations: 77.94 kB / 338.3 MB, free: 6.324 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.4458, allocations: 100 kB / 338.4 MB, free: 6.227 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.4477, allocations: 1.027 MB / 339.5 MB, free: 5.074 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.194e-05/0.4478, allocations: 7.938 kB / 339.5 MB, free: 5.066 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.403e-05/0.4479, allocations: 44 kB / 339.5 MB, free: 5.023 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.475e-05/0.4479, allocations: 28 kB / 339.5 MB, free: 4.996 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.449, allocations: 0.5578 MB / 340.1 MB, free: 4.438 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00618/0.4552, allocations: 5.52 MB / 345.6 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006643/0.4559, allocations: 232.9 kB / 345.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003605/0.4563, allocations: 165.6 kB / 346 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002608/0.4566, allocations: 89.09 kB / 346.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.4566, allocations: 34.56 kB / 346.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 2.846e-06/0.4566, allocations: 4 kB / 346.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.00415/0.4608, allocations: 1.704 MB / 347.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.4609, allocations: 85.05 kB / 347.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.4616, allocations: 0.6411 MB / 348.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.4617, allocations: 29.7 kB / 348.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004165/0.4621, allocations: 0.5987 MB / 349.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.4622, allocations: 146 kB / 349.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.4624, allocations: 138.5 kB / 349.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.4626, allocations: 382.8 kB / 349.8 MB, free: 10.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.4629, allocations: 149.9 kB / 350 MB, free: 10.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/0.4635, allocations: 0.4971 MB / 350.5 MB, free: 9.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009253/0.4644, allocations: 0.7027 MB / 351.2 MB, free: 8.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4644, allocations: 4 kB / 351.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001195/0.4656, allocations: 0.7112 MB / 351.9 MB, free: 7.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.4657, allocations: 8 kB / 351.9 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.4657, allocations: 12 kB / 351.9 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.547e-05/0.4658, allocations: 16 kB / 351.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007294/0.4665, allocations: 196.3 kB / 352.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-05/0.4665, allocations: 27.86 kB / 352.2 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.467, allocations: 32 kB / 352.2 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.467, allocations: 43.98 kB / 352.2 MB, free: 7.469 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005419/0.4676, allocations: 229.5 kB / 352.5 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.4678, allocations: 75.06 kB / 352.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/0.468, allocations: 74.53 kB / 352.6 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.468, allocations: 8 kB / 352.6 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/0.468, allocations: 3.938 kB / 352.6 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.468, allocations: 0 / 352.6 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.4705, allocations: 1.317 MB / 353.9 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4705, allocations: 4 kB / 353.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.471, allocations: 108 kB / 354 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.471, allocations: 8 kB / 354 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.4711, allocations: 12 kB / 354.1 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.4711, allocations: 7.938 kB / 354.1 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4711, allocations: 0 / 354.1 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.4722, allocations: 0.7004 MB / 354.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.4724, allocations: 140.2 kB / 354.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/0.4724, allocations: 16 kB / 354.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.4727, allocations: 27.95 kB / 354.9 MB, free: 4.613 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.717e-05/0.4728, allocations: 27.97 kB / 355 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.4729, allocations: 15.98 kB / 355 MB, free: 4.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005183/0.4734, allocations: 419 kB / 355.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4734, allocations: 3.938 kB / 355.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007192/0.4741, allocations: 140 kB / 355.5 MB, free: 4.023 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001564/0.4743, allocations: 119.1 kB / 355.7 MB, free: 3.895 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.4751, allocations: 432.6 kB / 356.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4751, allocations: 0 / 356.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.4754, allocations: 160.2 kB / 356.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006195/0.4761, allocations: 87.17 kB / 356.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.4794, allocations: 2.101 MB / 358.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.4801, allocations: 0.9965 MB / 359.4 MB, free: 68 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.4805, allocations: 94.02 kB / 359.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.4806, allocations: 67.41 kB / 359.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4806, allocations: 0 / 359.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01096/0.4916, allocations: 4.659 MB / 364.2 MB, free: 11.25 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)