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.001491/0.001491, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.852/1.852, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001429/0.00143, allocations: 52.2 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3478, allocations: 46.64 MB / 325.3 MB, free: 1.977 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007831/0.3557, allocations: 5.348 MB / 330.7 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004334/0.3601, allocations: 1.468 MB / 332.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008848/0.361, allocations: 26.25 kB / 332.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006992/0.3618, allocations: 216.8 kB / 332.4 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007281/0.3625, allocations: 201.8 kB / 332.6 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009962/0.3635, allocations: 390.6 kB / 332.9 MB, free: 11.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001602/0.3651, allocations: 1.12 MB / 334.1 MB, free: 11.08 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009041/0.3661, allocations: 474.9 kB / 334.5 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005171/0.3666, allocations: 402.2 kB / 334.9 MB, free: 10.37 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005189/0.3671, allocations: 433.5 kB / 335.3 MB, free: 9.945 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.3672, allocations: 80 kB / 335.4 MB, free: 9.867 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.3675, allocations: 99.94 kB / 335.5 MB, free: 9.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.3677, allocations: 211.2 kB / 335.7 MB, free: 9.562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004889/0.3682, allocations: 0.5009 MB / 336.2 MB, free: 9.059 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.3694, allocations: 1.122 MB / 337.3 MB, free: 7.934 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3694, allocations: 4 kB / 337.3 MB, free: 7.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.3694, allocations: 0 / 337.3 MB, free: 7.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.3694, allocations: 0 / 337.3 MB, free: 7.93 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.002069/0.3715, allocations: 1.301 MB / 338.6 MB, free: 6.574 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.253e-05/0.3716, allocations: 8.031 kB / 338.7 MB, free: 6.566 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000236/0.3718, allocations: 130.4 kB / 338.8 MB, free: 6.438 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.3729, allocations: 0.6068 MB / 339.4 MB, free: 5.789 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.467e-05/0.3729, allocations: 77.94 kB / 339.5 MB, free: 5.715 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.3731, allocations: 99.98 kB / 339.6 MB, free: 5.617 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.375, allocations: 1.031 MB / 340.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/0.375, allocations: 11.92 kB / 340.6 MB, free: 4.449 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.368e-05/0.3751, allocations: 44 kB / 340.7 MB, free: 4.406 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.3751, allocations: 24 kB / 340.7 MB, free: 4.383 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3762, allocations: 0.5539 MB / 341.2 MB, free: 3.824 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005308/0.3815, allocations: 5.524 MB / 346.8 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005969/0.3821, allocations: 228.9 kB / 347 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.3825, allocations: 169.5 kB / 347.1 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003115/0.3828, allocations: 93.08 kB / 347.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.3829, allocations: 34.56 kB / 347.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 2.474e-06/0.3829, allocations: 0 / 347.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003905/0.3868, allocations: 1.709 MB / 349 MB, free: 11.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.3869, allocations: 85.05 kB / 349.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008074/0.3877, allocations: 0.6411 MB / 349.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3877, allocations: 33.7 kB / 349.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004054/0.3881, allocations: 0.5987 MB / 350.3 MB, free: 10.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3883, allocations: 142 kB / 350.5 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3884, allocations: 134.5 kB / 350.6 MB, free: 9.957 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3886, allocations: 382.8 kB / 351 MB, free: 9.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.3889, allocations: 153.9 kB / 351.1 MB, free: 9.426 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.3895, allocations: 497.1 kB / 351.6 MB, free: 8.777 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000915/0.3904, allocations: 0.7066 MB / 352.3 MB, free: 7.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3905, allocations: 4 kB / 352.3 MB, free: 7.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001211/0.3917, allocations: 0.7079 MB / 353 MB, free: 7.191 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.3917, allocations: 16 kB / 353 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.3917, allocations: 12 kB / 353.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.958e-05/0.3918, allocations: 16 kB / 353.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006219/0.3924, allocations: 191.7 kB / 353.3 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.973e-05/0.3925, allocations: 27.86 kB / 353.3 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.3928, allocations: 35.98 kB / 353.3 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.3929, allocations: 40 kB / 353.4 MB, free: 6.859 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.0003233/0.3932, allocations: 229.5 kB / 353.6 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.3933, allocations: 75.06 kB / 353.7 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.3935, allocations: 78.53 kB / 353.7 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3935, allocations: 4 kB / 353.7 MB, free: 6.465 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.3935, allocations: 3.938 kB / 353.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3935, allocations: 7.969 kB / 353.8 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.3956, allocations: 1.321 MB / 355.1 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3956, allocations: 4 kB / 355.1 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.396, allocations: 103.9 kB / 355.2 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.3961, allocations: 4 kB / 355.2 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.3961, allocations: 15.98 kB / 355.2 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.3961, allocations: 7.875 kB / 355.2 MB, free: 4.926 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3961, allocations: 12.09 kB / 355.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.3971, allocations: 0.6964 MB / 355.9 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.3973, allocations: 140.2 kB / 356 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.3974, allocations: 8 kB / 356.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002844/0.3977, allocations: 27.92 kB / 356.1 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.021e-05/0.3977, allocations: 35.95 kB / 356.1 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.3978, allocations: 8 kB / 356.1 MB, free: 3.953 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004458/0.3982, allocations: 423 kB / 356.5 MB, free: 3.543 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3982, allocations: 0 / 356.5 MB, free: 3.543 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005714/0.3988, allocations: 136 kB / 356.7 MB, free: 3.41 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.0001469/0.399, allocations: 119.1 kB / 356.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008414/0.3998, allocations: 448.6 kB / 357.2 MB, free: 2.848 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3998, allocations: 0 / 357.2 MB, free: 2.848 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.4001, allocations: 151.7 kB / 357.4 MB, free: 2.699 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005481/0.4006, allocations: 83.73 kB / 357.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.4034, allocations: 1.664 MB / 359.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006308/0.404, allocations: 1.008 MB / 360.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002645/0.4043, allocations: 94 kB / 360.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.4044, allocations: 67.41 kB / 360.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.933e-06/0.4044, allocations: 0 / 360.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01095/0.4154, allocations: 4.935 MB / 365.2 MB, free: 10.78 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)