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.001163/0.001163, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001352/0.001352, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.913/1.913, allocations: 205.4 MB / 223.4 MB, free: 5.781 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.0005432/0.0005433, allocations: 12 kB / 280.1 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3256, allocations: 47.59 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005502/0.3311, allocations: 4.579 MB / 332.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.3348, allocations: 1.409 MB / 333.7 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.3361, allocations: 22.97 kB / 333.7 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007235/0.3368, allocations: 167.6 kB / 333.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009188/0.3378, allocations: 150.2 kB / 334.1 MB, free: 12.33 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.3389, allocations: 297.3 kB / 334.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.341, allocations: 0.993 MB / 335.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009933/0.342, allocations: 352.7 kB / 335.7 MB, free: 11.28 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008035/0.3428, allocations: 322.4 kB / 336 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007425/0.3436, allocations: 352.8 kB / 336.3 MB, free: 10.85 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.3438, allocations: 45.97 kB / 336.4 MB, free: 10.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000318/0.3441, allocations: 51.98 kB / 336.4 MB, free: 10.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3443, allocations: 147.3 kB / 336.6 MB, free: 10.65 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003069/0.3446, allocations: 205.1 kB / 336.8 MB, free: 10.44 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000879/0.3455, allocations: 0.7688 MB / 337.5 MB, free: 9.672 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3455, allocations: 0 / 337.5 MB, free: 9.672 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3455, allocations: 0 / 337.5 MB, free: 9.672 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.905e-05/0.3456, allocations: 0 / 337.5 MB, free: 9.672 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.002121/0.3477, allocations: 1.138 MB / 338.7 MB, free: 8.484 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3478, allocations: 8.031 kB / 338.7 MB, free: 8.477 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000318/0.3481, allocations: 126.5 kB / 338.8 MB, free: 8.352 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.3493, allocations: 0.5917 MB / 339.4 MB, free: 7.715 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-05/0.3493, allocations: 73.95 kB / 339.5 MB, free: 7.641 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.3495, allocations: 103.9 kB / 339.6 MB, free: 7.539 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.3516, allocations: 1.019 MB / 340.6 MB, free: 6.398 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.3516, allocations: 7.938 kB / 340.6 MB, free: 6.391 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.892e-05/0.3517, allocations: 40 kB / 340.6 MB, free: 6.352 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3518, allocations: 28 kB / 340.7 MB, free: 6.324 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.3531, allocations: 0.5578 MB / 341.2 MB, free: 5.77 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006015/0.3591, allocations: 5.52 MB / 346.8 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007176/0.3599, allocations: 233 kB / 347 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.3603, allocations: 165.6 kB / 347.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000222/0.3605, allocations: 93.31 kB / 347.2 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.567e-05/0.3606, allocations: 42.5 kB / 347.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 2.885e-06/0.3606, allocations: 0 / 347.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004381/0.365, allocations: 1.771 MB / 349 MB, free: 13.51 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/0.3651, allocations: 81.11 kB / 349.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008845/0.366, allocations: 0.6372 MB / 349.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.3661, allocations: 37.7 kB / 349.8 MB, free: 12.72 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005532/0.3666, allocations: 0.5871 MB / 350.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.3668, allocations: 157.8 kB / 350.5 MB, free: 11.97 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.3668, allocations: 16 kB / 350.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000253/0.3671, allocations: 382.8 kB / 350.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003592/0.3675, allocations: 161.9 kB / 351.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006433/0.3681, allocations: 0.4932 MB / 351.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005243/0.3686, allocations: 231.8 kB / 351.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.3687, allocations: 4 kB / 351.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001438/0.3701, allocations: 0.7271 MB / 352.5 MB, free: 9.785 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.3702, allocations: 8 kB / 352.5 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.3702, allocations: 12 kB / 352.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.179e-05/0.3702, allocations: 20 kB / 352.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.3709, allocations: 199.7 kB / 352.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-05/0.371, allocations: 28.17 kB / 352.8 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.3714, allocations: 43.94 kB / 352.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.243e-05/0.3714, allocations: 40 kB / 352.9 MB, free: 9.441 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003353/0.3718, allocations: 225.5 kB / 353.1 MB, free: 9.211 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.3719, allocations: 71.06 kB / 353.2 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.3721, allocations: 82.53 kB / 353.3 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3721, allocations: 7.938 kB / 353.3 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.3721, allocations: 4 kB / 353.3 MB, free: 9.047 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3721, allocations: 3.984 kB / 353.3 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.3743, allocations: 1.338 MB / 354.6 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3743, allocations: 0 / 354.6 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.3748, allocations: 120 kB / 354.7 MB, free: 7.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.3748, allocations: 4 kB / 354.7 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.3749, allocations: 11.98 kB / 354.7 MB, free: 7.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.3749, allocations: 4 kB / 354.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3749, allocations: 3.938 kB / 354.7 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3761, allocations: 0.7203 MB / 355.5 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.3762, allocations: 148.1 kB / 355.6 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.238e-05/0.3763, allocations: 8.094 kB / 355.6 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.3767, allocations: 27.98 kB / 355.6 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.719e-05/0.3768, allocations: 39.88 kB / 355.7 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.602e-05/0.3768, allocations: 12 kB / 355.7 MB, free: 6.488 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004989/0.3773, allocations: 415 kB / 356.1 MB, free: 6.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3773, allocations: 0 / 356.1 MB, free: 6.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.378, allocations: 148 kB / 356.2 MB, free: 5.945 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001755/0.3782, allocations: 111.2 kB / 356.4 MB, free: 5.824 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.379, allocations: 450.2 kB / 356.8 MB, free: 5.387 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.379, allocations: 0 / 356.8 MB, free: 5.387 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.3794, allocations: 163.8 kB / 357 MB, free: 5.227 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.3799, allocations: 74.02 kB / 357 MB, free: 5.156 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.3835, allocations: 2.086 MB / 359.1 MB, free: 3.023 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007115/0.3842, allocations: 1 MB / 360.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000325/0.3846, allocations: 98 kB / 360.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.3847, allocations: 67.41 kB / 360.3 MB, free: 1.828 MB / 286.1 MB Notification: Performance of SimCode: time 4.559e-06/0.3848, allocations: 0 / 360.3 MB, free: 1.828 MB / 286.1 MB Notification: Performance of Templates: time 0.01272/0.3975, allocations: 4.522 MB / 364.8 MB, free: 13.3 MB / 302.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)