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.007361/0.007361, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001482/0.001482, allocations: 202 kB / 16.68 MB, free: 5.973 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.966/1.966, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.002579/0.002579, allocations: 50.73 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.187, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.008499/0.1956, allocations: 5.336 MB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005195/0.2009, allocations: 1.47 MB / 380 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001739/0.2027, allocations: 27.88 kB / 380 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.2039, allocations: 217.8 kB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.2054, allocations: 198 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.2072, allocations: 395.4 kB / 380.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002873/0.2101, allocations: 1.13 MB / 382 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.2113, allocations: 496.1 kB / 382.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.2126, allocations: 402.3 kB / 382.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008355/0.2134, allocations: 429.6 kB / 383.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.2136, allocations: 84 kB / 383.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002838/0.2139, allocations: 103.9 kB / 383.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.2142, allocations: 207.1 kB / 383.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006736/0.2148, allocations: 0.4971 MB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.2168, allocations: 1.167 MB / 385.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.32e-05/0.2169, allocations: 0 / 385.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.2169, allocations: 4 kB / 385.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.2169, allocations: 0 / 385.3 MB, free: 5.109 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.00259/0.2195, allocations: 1.301 MB / 386.6 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.554e-05/0.2197, allocations: 8.031 kB / 386.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.2199, allocations: 122.5 kB / 386.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.2214, allocations: 0.6575 MB / 387.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2215, allocations: 77.94 kB / 387.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.2217, allocations: 99.91 kB / 387.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.2241, allocations: 1.031 MB / 388.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.476e-05/0.2241, allocations: 3.938 kB / 388.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.617e-05/0.2243, allocations: 44 kB / 388.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.2243, allocations: 28 kB / 388.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2256, allocations: 0.5578 MB / 389.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007957/0.2336, allocations: 5.485 MB / 394.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000752/0.2344, allocations: 229 kB / 394.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003313/0.2347, allocations: 161.6 kB / 395.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000187/0.2349, allocations: 101 kB / 395.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.235, allocations: 34.56 kB / 395.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.838e-06/0.235, allocations: 0 / 395.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004518/0.2395, allocations: 1.711 MB / 396.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.2397, allocations: 89.05 kB / 397 MB, free: 8.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.2408, allocations: 0.6411 MB / 397.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.2409, allocations: 33.64 kB / 397.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005975/0.2415, allocations: 0.5987 MB / 398.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.2417, allocations: 146 kB / 398.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.2419, allocations: 138.5 kB / 398.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002571/0.2422, allocations: 382.8 kB / 398.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.2425, allocations: 153.9 kB / 399.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007149/0.2433, allocations: 497.1 kB / 399.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.2444, allocations: 0.6959 MB / 400.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.2445, allocations: 4 kB / 400.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001376/0.2458, allocations: 0.7194 MB / 401 MB, free: 4.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.2459, allocations: 8 kB / 401 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.2459, allocations: 12 kB / 401 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.622e-05/0.246, allocations: 16 kB / 401 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006684/0.2466, allocations: 199.6 kB / 401.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.2467, allocations: 27.88 kB / 401.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.2471, allocations: 31.98 kB / 401.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/0.2472, allocations: 40.12 kB / 401.3 MB, free: 4.023 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.0005766/0.2478, allocations: 233.5 kB / 401.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.248, allocations: 78.97 kB / 401.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001825/0.2482, allocations: 74.55 kB / 401.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.2482, allocations: 4 kB / 401.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.2482, allocations: 3.938 kB / 401.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.2482, allocations: 7.984 kB / 401.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.2507, allocations: 1.302 MB / 403 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2507, allocations: 7.969 kB / 403 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.2512, allocations: 103.9 kB / 403.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.892e-06/0.2512, allocations: 4 kB / 403.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.2512, allocations: 11.94 kB / 403.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.528e-05/0.2512, allocations: 11.94 kB / 403.2 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.2513, allocations: 4 kB / 403.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.2525, allocations: 0.7007 MB / 403.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.2528, allocations: 148.1 kB / 404 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.2528, allocations: 8 kB / 404 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.2531, allocations: 19.98 kB / 404 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.2532, allocations: 31.95 kB / 404.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.2532, allocations: 12 kB / 404.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005524/0.2538, allocations: 427 kB / 404.5 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.2538, allocations: 4 kB / 404.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008502/0.2547, allocations: 136 kB / 404.6 MB, free: 0.5859 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.0002312/0.2549, allocations: 111.1 kB / 404.7 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00084/0.2558, allocations: 442 kB / 405.2 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2558, allocations: 0 / 405.2 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003115/0.2561, allocations: 164.6 kB / 405.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006763/0.2568, allocations: 71.28 kB / 405.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.2604, allocations: 1.647 MB / 407.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008593/0.2613, allocations: 1 MB / 408.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003843/0.2617, allocations: 98 kB / 408.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.2619, allocations: 67.41 kB / 408.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2619, allocations: 0 / 408.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of Templates: time 0.01389/0.2758, allocations: 5.08 MB / 413.3 MB, free: 7.832 MB / 350.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)