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.001102/0.001102, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.009561/0.009561, allocations: 170.4 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0007143/0.0007143, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3586, allocations: 47.58 MB / 327 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006356/0.3651, allocations: 4.882 MB / 331.9 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.3695, allocations: 1.442 MB / 333.4 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.3714, allocations: 22.78 kB / 333.4 MB, free: 12.24 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009557/0.3724, allocations: 165.8 kB / 333.5 MB, free: 12.1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.3738, allocations: 154.5 kB / 333.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.3751, allocations: 342.2 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.377, allocations: 1.069 MB / 335.1 MB, free: 11.06 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008072/0.3778, allocations: 412.1 kB / 335.5 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006603/0.3785, allocations: 331.3 kB / 335.8 MB, free: 10.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000393/0.3789, allocations: 369.6 kB / 336.2 MB, free: 10.15 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.024e-05/0.379, allocations: 44 kB / 336.2 MB, free: 10.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.3791, allocations: 51.94 kB / 336.3 MB, free: 10.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.3793, allocations: 163.2 kB / 336.4 MB, free: 9.898 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004024/0.3797, allocations: 474.7 kB / 336.9 MB, free: 9.426 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.3807, allocations: 1.001 MB / 337.9 MB, free: 8.422 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3807, allocations: 0 / 337.9 MB, free: 8.422 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.761e-06/0.3808, allocations: 0 / 337.9 MB, free: 8.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.3808, allocations: 3.938 kB / 337.9 MB, free: 8.418 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.001957/0.3827, allocations: 1.126 MB / 339 MB, free: 7.238 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.3828, allocations: 8.031 kB / 339 MB, free: 7.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.3831, allocations: 130.5 kB / 339.2 MB, free: 7.102 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009281/0.384, allocations: 0.6107 MB / 339.8 MB, free: 6.445 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.3e-05/0.3841, allocations: 81.94 kB / 339.9 MB, free: 6.367 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.3843, allocations: 99.91 kB / 340 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.3861, allocations: 1.035 MB / 341 MB, free: 5.109 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.3862, allocations: 7.938 kB / 341 MB, free: 5.102 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.923e-05/0.3863, allocations: 44 kB / 341 MB, free: 5.059 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.94e-05/0.3863, allocations: 24 kB / 341.1 MB, free: 5.035 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.3874, allocations: 0.5657 MB / 341.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005072/0.3925, allocations: 5.528 MB / 347.2 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000611/0.3932, allocations: 236.9 kB / 347.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.3935, allocations: 165.6 kB / 347.5 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/0.3938, allocations: 89.09 kB / 347.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.3938, allocations: 34.56 kB / 347.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 4.138e-06/0.3938, allocations: 4 kB / 347.7 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004195/0.398, allocations: 1.759 MB / 349.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.3981, allocations: 96.97 kB / 349.5 MB, free: 12.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007654/0.3989, allocations: 0.6294 MB / 350.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.3989, allocations: 37.7 kB / 350.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/0.3994, allocations: 0.5947 MB / 350.8 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3995, allocations: 150 kB / 350.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/0.3996, allocations: 65.69 kB / 351 MB, free: 10.6 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.3998, allocations: 394.7 kB / 351.4 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.4002, allocations: 153.9 kB / 351.5 MB, free: 10.06 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005611/0.4007, allocations: 0.4972 MB / 352 MB, free: 9.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009616/0.4017, allocations: 0.7145 MB / 352.7 MB, free: 8.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.4017, allocations: 8 kB / 352.8 MB, free: 8.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00123/0.403, allocations: 0.7195 MB / 353.5 MB, free: 7.785 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.403, allocations: 12.16 kB / 353.5 MB, free: 7.773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.403, allocations: 16 kB / 353.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/0.4031, allocations: 16 kB / 353.5 MB, free: 7.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006755/0.4038, allocations: 203.6 kB / 353.7 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.992e-05/0.4038, allocations: 23.88 kB / 353.7 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003958/0.4042, allocations: 43.98 kB / 353.8 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.4043, allocations: 32 kB / 353.8 MB, free: 7.445 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.0003852/0.4046, allocations: 229.5 kB / 354 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4048, allocations: 79.05 kB / 354.1 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.4049, allocations: 78.55 kB / 354.2 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.405, allocations: 4 kB / 354.2 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/0.405, allocations: 7.938 kB / 354.2 MB, free: 7.043 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.405, allocations: 3.984 kB / 354.2 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.4072, allocations: 1.348 MB / 355.6 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4072, allocations: 4 kB / 355.6 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004682/0.4077, allocations: 116 kB / 355.7 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.4077, allocations: 7.984 kB / 355.7 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.4077, allocations: 8 kB / 355.7 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.4078, allocations: 7.938 kB / 355.7 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4078, allocations: 0 / 355.7 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4088, allocations: 0.7204 MB / 356.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.409, allocations: 144.2 kB / 356.6 MB, free: 4.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.537e-05/0.4091, allocations: 8 kB / 356.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/0.4094, allocations: 43.86 kB / 356.6 MB, free: 4.512 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4095, allocations: 27.89 kB / 356.6 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.4095, allocations: 12 kB / 356.6 MB, free: 4.473 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000499/0.41, allocations: 423 kB / 357.1 MB, free: 4.062 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.41, allocations: 0 / 357.1 MB, free: 4.062 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007113/0.4108, allocations: 140 kB / 357.2 MB, free: 3.926 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.0001991/0.411, allocations: 119.1 kB / 357.3 MB, free: 3.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008776/0.4118, allocations: 448.1 kB / 357.7 MB, free: 3.363 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4119, allocations: 448 / 357.7 MB, free: 3.363 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.4122, allocations: 167.8 kB / 357.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006733/0.4129, allocations: 71.19 kB / 358 MB, free: 3.133 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.4167, allocations: 2.215 MB / 360.2 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009114/0.4176, allocations: 1.004 MB / 361.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000369/0.418, allocations: 90 kB / 361.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.4182, allocations: 67.41 kB / 361.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4182, allocations: 4 kB / 361.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01231/0.4305, allocations: 4.628 MB / 366 MB, free: 11.05 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)