Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001456/0.001456, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001598/0.001598, allocations: 194.8 kB / 18 MB, free: 5.07 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.637/1.637, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001172/0.001172, allocations: 52.39 kB / 327.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1128, allocations: 46.62 MB / 374.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2799/0.3928, allocations: 5.324 MB / 379.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.3967, allocations: 1.478 MB / 381.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000616/0.3973, allocations: 27.39 kB / 381.3 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005082/0.3979, allocations: 216.7 kB / 381.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006274/0.3986, allocations: 197.1 kB / 381.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.3997, allocations: 397.9 kB / 382.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.4015, allocations: 1.131 MB / 383.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00086/0.4023, allocations: 486.5 kB / 383.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008481/0.4032, allocations: 401.2 kB / 384.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005902/0.4038, allocations: 434.2 kB / 384.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.404, allocations: 83.78 kB / 384.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.4043, allocations: 97.12 kB / 384.7 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.4045, allocations: 210.2 kB / 384.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004863/0.405, allocations: 0.4984 MB / 385.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001692/0.4067, allocations: 1.17 MB / 386.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4067, allocations: 2.25 kB / 386.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4067, allocations: 0 / 386.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.4067, allocations: 0 / 386.6 MB, free: 7.422 MB / 318.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.002229/0.409, allocations: 1.304 MB / 387.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.409, allocations: 10.25 kB / 387.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.4092, allocations: 127.3 kB / 388 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.4103, allocations: 0.6544 MB / 388.7 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.4104, allocations: 79 kB / 388.8 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.4105, allocations: 101.2 kB / 388.9 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.4123, allocations: 1.026 MB / 389.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.63e-05/0.4124, allocations: 7.891 kB / 389.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.259e-05/0.4124, allocations: 43.19 kB / 389.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.101e-05/0.4125, allocations: 26.25 kB / 390 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.4136, allocations: 0.5556 MB / 390.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004517/0.4182, allocations: 5.49 MB / 396 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006165/0.4188, allocations: 239.8 kB / 396.3 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.4192, allocations: 157.4 kB / 396.4 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.4193, allocations: 91.47 kB / 396.5 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.4194, allocations: 41.83 kB / 396.5 MB, free: 196 kB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.485e-06/0.4194, allocations: 4 kB / 396.5 MB, free: 192 kB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.004428/0.4238, allocations: 1.701 MB / 398.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/0.4239, allocations: 87 kB / 398.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.425, allocations: 0.635 MB / 399 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.425, allocations: 35.92 kB / 399 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005564/0.4256, allocations: 0.6009 MB / 399.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.4257, allocations: 147.3 kB / 399.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.426, allocations: 134.6 kB / 399.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002647/0.4262, allocations: 383.8 kB / 400.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.4266, allocations: 151.6 kB / 400.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.4273, allocations: 0.4907 MB / 400.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.4283, allocations: 0.7011 MB / 401.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.4284, allocations: 3.938 kB / 401.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001396/0.4298, allocations: 0.713 MB / 402.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.4298, allocations: 10.06 kB / 402.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/0.4298, allocations: 12.33 kB / 402.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.304e-05/0.4299, allocations: 21.3 kB / 402.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.4306, allocations: 194.8 kB / 402.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.749e-05/0.4306, allocations: 30.75 kB / 402.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/0.431, allocations: 33.16 kB / 402.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.474e-05/0.4311, allocations: 42.27 kB / 402.6 MB, free: 12.16 MB / 334.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.0004621/0.4316, allocations: 222.2 kB / 402.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.4317, allocations: 81.34 kB / 402.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.4319, allocations: 77.94 kB / 403 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.4319, allocations: 5.5 kB / 403 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/0.4319, allocations: 4.547 kB / 403 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4319, allocations: 7.234 kB / 403 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/0.4343, allocations: 1.317 MB / 404.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.4343, allocations: 2.562 kB / 404.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.4348, allocations: 98.44 kB / 404.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.4348, allocations: 7.438 kB / 404.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.4349, allocations: 21.78 kB / 404.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.4349, allocations: 4.094 kB / 404.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.4349, allocations: 6.625 kB / 404.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.4361, allocations: 0.7012 MB / 405.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.4363, allocations: 142 kB / 405.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/0.4363, allocations: 9.031 kB / 405.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.4366, allocations: 28.41 kB / 405.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.4368, allocations: 31.03 kB / 405.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.4368, allocations: 11.67 kB / 405.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00066/0.4375, allocations: 423.7 kB / 405.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4375, allocations: 0 / 405.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000895/0.4384, allocations: 137.4 kB / 406 MB, free: 10.31 MB / 334.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.0002438/0.4386, allocations: 115.6 kB / 406.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.4397, allocations: 441 kB / 406.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4397, allocations: 5.125 kB / 406.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.4401, allocations: 151.8 kB / 406.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.4407, allocations: 73.47 kB / 406.7 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.4446, allocations: 1.64 MB / 408.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/0.4455, allocations: 0.9988 MB / 409.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002976/0.4458, allocations: 95.62 kB / 409.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.446, allocations: 68.47 kB / 409.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.446, allocations: 1.344 kB / 409.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of Templates: time 0.01411/0.4601, allocations: 5.084 MB / 414.6 MB, free: 5.539 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)