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.001484/0.001484, allocations: 108 kB / 15.61 MB, free: 152 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.001833/0.001833, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.8/1.8, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001618/0.001619, allocations: 51.94 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3377, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007663/0.3454, allocations: 5.352 MB / 330.7 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004095/0.3496, allocations: 1.469 MB / 332.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005724/0.3502, allocations: 24.12 kB / 332.1 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005314/0.3507, allocations: 218.1 kB / 332.4 MB, free: 12.11 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005591/0.3513, allocations: 197 kB / 332.6 MB, free: 11.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008791/0.3522, allocations: 391.9 kB / 332.9 MB, free: 11.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.3536, allocations: 1.112 MB / 334 MB, free: 10.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009656/0.3546, allocations: 483.4 kB / 334.5 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005575/0.3552, allocations: 402.8 kB / 334.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004653/0.3556, allocations: 433.5 kB / 335.3 MB, free: 9.848 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.3558, allocations: 84 kB / 335.4 MB, free: 9.766 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.356, allocations: 96 kB / 335.5 MB, free: 9.672 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.3562, allocations: 211.1 kB / 335.7 MB, free: 9.465 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004381/0.3566, allocations: 0.4971 MB / 336.2 MB, free: 8.965 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.3578, allocations: 1.126 MB / 337.3 MB, free: 7.836 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3578, allocations: 0 / 337.3 MB, free: 7.836 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3578, allocations: 0 / 337.3 MB, free: 7.836 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.02e-05/0.3578, allocations: 0 / 337.3 MB, free: 7.836 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.002108/0.3599, allocations: 1.305 MB / 338.6 MB, free: 6.477 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.36, allocations: 8.031 kB / 338.7 MB, free: 6.469 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3602, allocations: 126.4 kB / 338.8 MB, free: 6.344 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009212/0.3611, allocations: 0.6224 MB / 339.4 MB, free: 5.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-05/0.3612, allocations: 77.94 kB / 339.5 MB, free: 5.605 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.3614, allocations: 96 kB / 339.6 MB, free: 5.512 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.3631, allocations: 1.028 MB / 340.6 MB, free: 4.359 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.3631, allocations: 3.938 kB / 340.6 MB, free: 4.355 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.618e-05/0.3632, allocations: 44 kB / 340.6 MB, free: 4.312 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.689e-05/0.3633, allocations: 28 kB / 340.7 MB, free: 4.285 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.3643, allocations: 0.5578 MB / 341.2 MB, free: 3.723 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.369, allocations: 5.512 MB / 346.7 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.3695, allocations: 240.9 kB / 347 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003008/0.3699, allocations: 165.6 kB / 347.1 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.3701, allocations: 89.08 kB / 347.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3701, allocations: 46.44 kB / 347.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.3701, allocations: 0 / 347.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003852/0.374, allocations: 1.706 MB / 349 MB, free: 11.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.3741, allocations: 85.05 kB / 349.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.3748, allocations: 0.6294 MB / 349.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.734e-05/0.3749, allocations: 37.7 kB / 349.7 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.3753, allocations: 0.5987 MB / 350.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.3755, allocations: 146 kB / 350.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.3756, allocations: 134.5 kB / 350.6 MB, free: 9.859 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.3758, allocations: 386.8 kB / 351 MB, free: 9.473 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003073/0.3762, allocations: 149.9 kB / 351.1 MB, free: 9.328 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/0.3767, allocations: 0.4971 MB / 351.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009604/0.3777, allocations: 0.6988 MB / 352.3 MB, free: 7.809 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3777, allocations: 4 kB / 352.3 MB, free: 7.805 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001135/0.3788, allocations: 0.7117 MB / 353 MB, free: 7.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3789, allocations: 8 kB / 353 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.3789, allocations: 16.09 kB / 353.1 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.997e-05/0.3789, allocations: 20 kB / 353.1 MB, free: 7.043 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/0.3796, allocations: 195.7 kB / 353.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.426e-05/0.3796, allocations: 27.81 kB / 353.3 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.38, allocations: 31.98 kB / 353.3 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.38, allocations: 36 kB / 353.4 MB, free: 6.758 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.0002659/0.3803, allocations: 229.5 kB / 353.6 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3804, allocations: 75.06 kB / 353.7 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.3805, allocations: 82.52 kB / 353.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3806, allocations: 8 kB / 353.7 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.3806, allocations: 3.938 kB / 353.8 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3806, allocations: 7.922 kB / 353.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.3826, allocations: 1.321 MB / 355.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3826, allocations: 0 / 355.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.3831, allocations: 99.88 kB / 355.2 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.3831, allocations: 7.984 kB / 355.2 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.3832, allocations: 8 kB / 355.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.3832, allocations: 7.938 kB / 355.2 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.3832, allocations: 7.938 kB / 355.2 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.3842, allocations: 0.6966 MB / 355.9 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.3843, allocations: 144.2 kB / 356 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.3844, allocations: 12 kB / 356.1 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3847, allocations: 27.92 kB / 356.1 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.475e-05/0.3848, allocations: 31.89 kB / 356.1 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.3848, allocations: 12 kB / 356.1 MB, free: 3.852 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.3853, allocations: 423 kB / 356.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3854, allocations: 0 / 356.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006544/0.386, allocations: 144 kB / 356.7 MB, free: 3.301 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.0001688/0.3862, allocations: 107.1 kB / 356.8 MB, free: 3.184 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008855/0.3871, allocations: 448.4 kB / 357.2 MB, free: 2.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3871, allocations: 4.312 kB / 357.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003119/0.3874, allocations: 155.7 kB / 357.4 MB, free: 2.594 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006121/0.388, allocations: 75.75 kB / 357.5 MB, free: 2.523 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.3911, allocations: 1.664 MB / 359.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007659/0.3919, allocations: 1.012 MB / 360.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.3922, allocations: 90.02 kB / 360.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3924, allocations: 71.41 kB / 360.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3924, allocations: 0 / 360.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01262/0.405, allocations: 4.936 MB / 365.2 MB, free: 10.68 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)