Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.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.001151/0.001151, 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.001549/0.001549, allocations: 195.5 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 1.66/1.66, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.00139/0.00139, allocations: 55.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3742, allocations: 46.62 MB / 324.8 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.008398/0.3827, allocations: 5.333 MB / 330.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004654/0.3874, allocations: 1.457 MB / 331.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.3886, allocations: 24.97 kB / 331.7 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006357/0.3893, allocations: 162 kB / 331.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.3904, allocations: 159 kB / 332 MB, free: 12.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.3917, allocations: 339 kB / 332.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002077/0.3938, allocations: 1.123 MB / 333.4 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009889/0.3948, allocations: 480 kB / 333.9 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007286/0.3955, allocations: 397 kB / 334.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004217/0.396, allocations: 433.5 kB / 334.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.3961, allocations: 84 kB / 334.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.3963, allocations: 95.98 kB / 334.9 MB, free: 10 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.3965, allocations: 215.2 kB / 335.1 MB, free: 9.789 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003739/0.3968, allocations: 0.497 MB / 335.6 MB, free: 9.289 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.398, allocations: 1.126 MB / 336.7 MB, free: 8.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.398, allocations: 0 / 336.7 MB, free: 8.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.398, allocations: 0 / 336.7 MB, free: 8.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.398, allocations: 0 / 336.7 MB, free: 8.16 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.00205/0.4001, allocations: 1.305 MB / 338 MB, free: 6.801 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.4001, allocations: 8.031 kB / 338 MB, free: 6.793 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.4003, allocations: 130.4 kB / 338.2 MB, free: 6.664 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008799/0.4012, allocations: 0.6068 MB / 338.8 MB, free: 6.016 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.701e-05/0.4013, allocations: 73.94 kB / 338.8 MB, free: 5.945 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.4014, allocations: 104 kB / 338.9 MB, free: 5.844 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.4031, allocations: 1.024 MB / 340 MB, free: 4.695 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.4031, allocations: 11.92 kB / 340 MB, free: 4.684 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.268e-05/0.4032, allocations: 44 kB / 340 MB, free: 4.641 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.135e-05/0.4033, allocations: 24 kB / 340 MB, free: 4.617 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.4043, allocations: 0.5578 MB / 340.6 MB, free: 4.059 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00674/0.4111, allocations: 5.528 MB / 346.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.4118, allocations: 236.9 kB / 346.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.4121, allocations: 161.6 kB / 346.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000316/0.4124, allocations: 93.09 kB / 346.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.4125, allocations: 34.5 kB / 346.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 3.056e-06/0.4125, allocations: 4 kB / 346.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004122/0.4166, allocations: 1.703 MB / 348.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.4167, allocations: 89.05 kB / 348.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007213/0.4174, allocations: 0.6373 MB / 349.1 MB, free: 11.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.4175, allocations: 29.7 kB / 349.1 MB, free: 11.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000485/0.418, allocations: 0.5987 MB / 349.7 MB, free: 10.47 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.4182, allocations: 146 kB / 349.8 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.4184, allocations: 134.5 kB / 350 MB, free: 10.19 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4186, allocations: 382.8 kB / 350.3 MB, free: 9.809 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.4189, allocations: 157.9 kB / 350.5 MB, free: 9.656 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000614/0.4195, allocations: 497.1 kB / 351 MB, free: 9.004 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.4206, allocations: 0.7036 MB / 351.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.4206, allocations: 8 kB / 351.7 MB, free: 8.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001079/0.4217, allocations: 0.704 MB / 352.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.4217, allocations: 18.34 kB / 352.4 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.4217, allocations: 12 kB / 352.4 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.233e-05/0.4218, allocations: 19.94 kB / 352.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006148/0.4224, allocations: 187.7 kB / 352.6 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.774e-05/0.4224, allocations: 27.86 kB / 352.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.4228, allocations: 35.98 kB / 352.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.4228, allocations: 40 kB / 352.7 MB, free: 7.086 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.0004385/0.4233, allocations: 233.5 kB / 353 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.4234, allocations: 75.06 kB / 353 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.4237, allocations: 74.53 kB / 353.1 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4237, allocations: 4 kB / 353.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.4237, allocations: 3.938 kB / 353.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/0.4237, allocations: 3.984 kB / 353.1 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.4259, allocations: 1.332 MB / 354.5 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.4259, allocations: 4 kB / 354.5 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.4264, allocations: 103.9 kB / 354.6 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.4264, allocations: 4 kB / 354.6 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.4264, allocations: 11.98 kB / 354.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.4264, allocations: 8.094 kB / 354.6 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4264, allocations: 4 kB / 354.6 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.4275, allocations: 0.6964 MB / 355.3 MB, free: 4.418 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.4278, allocations: 140.2 kB / 355.4 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.4278, allocations: 12 kB / 355.4 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.4281, allocations: 27.92 kB / 355.5 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.105e-05/0.4282, allocations: 31.97 kB / 355.5 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4282, allocations: 19.92 kB / 355.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005749/0.4288, allocations: 419 kB / 355.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4288, allocations: 0 / 355.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007328/0.4296, allocations: 136 kB / 356.1 MB, free: 3.633 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.0001745/0.4297, allocations: 123 kB / 356.2 MB, free: 3.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008221/0.4306, allocations: 446.1 kB / 356.6 MB, free: 3.066 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4306, allocations: 0 / 356.6 MB, free: 3.066 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.4309, allocations: 159.7 kB / 356.8 MB, free: 2.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.4314, allocations: 71.75 kB / 356.8 MB, free: 2.844 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.4345, allocations: 2.097 MB / 358.9 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/0.4353, allocations: 1.012 MB / 359.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.4356, allocations: 90 kB / 360 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.4357, allocations: 67.41 kB / 360.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4358, allocations: 4 kB / 360.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01191/0.4477, allocations: 4.871 MB / 365 MB, free: 10.63 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)