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.007432/0.007432, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.00141/0.001411, allocations: 197.9 kB / 16.68 MB, free: 5.98 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.898/1.898, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001797/0.001797, allocations: 50.83 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1647, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007928/0.1727, allocations: 5.328 MB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00413/0.1769, allocations: 1.473 MB / 380 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.1782, allocations: 31.81 kB / 380 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006842/0.179, allocations: 217.8 kB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.18, allocations: 186 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.1813, allocations: 403.4 kB / 380.8 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.183, allocations: 1.13 MB / 381.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008655/0.1838, allocations: 484.2 kB / 382.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007894/0.1847, allocations: 394.3 kB / 382.8 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.1852, allocations: 437.5 kB / 383.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.1853, allocations: 84 kB / 383.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.1856, allocations: 96 kB / 383.4 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.1858, allocations: 211.1 kB / 383.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004924/0.1863, allocations: 0.497 MB / 384.1 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.188, allocations: 1.178 MB / 385.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.188, allocations: 3.938 kB / 385.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.188, allocations: 0 / 385.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.188, 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.002322/0.1904, allocations: 1.343 MB / 386.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.371e-05/0.1904, allocations: 8.031 kB / 386.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.1906, allocations: 127.2 kB / 386.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.1919, allocations: 0.6621 MB / 387.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/0.192, allocations: 77.94 kB / 387.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.1922, allocations: 99.95 kB / 387.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.1941, allocations: 1.027 MB / 388.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.317e-05/0.1941, allocations: 7.938 kB / 388.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.1942, allocations: 44 kB / 388.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.1943, allocations: 28 kB / 388.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1955, allocations: 0.5539 MB / 389.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006564/0.2021, allocations: 5.506 MB / 394.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.2029, allocations: 232.9 kB / 395 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/0.2033, allocations: 153.6 kB / 395.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002501/0.2036, allocations: 89.11 kB / 395.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/0.2037, allocations: 42.55 kB / 395.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 5.43e-06/0.2037, allocations: 0 / 395.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.005187/0.2089, allocations: 1.741 MB / 397 MB, free: 8.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.209, allocations: 89.05 kB / 397.1 MB, free: 8.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008817/0.2099, allocations: 0.6373 MB / 397.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.2099, allocations: 33.7 kB / 397.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005413/0.2105, allocations: 0.6084 MB / 398.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.2106, allocations: 158.7 kB / 398.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.2109, allocations: 138.5 kB / 398.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002285/0.2111, allocations: 382.8 kB / 399 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.2114, allocations: 157.9 kB / 399.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009133/0.2124, allocations: 0.4893 MB / 399.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.2134, allocations: 0.6997 MB / 400.4 MB, free: 4.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.2134, allocations: 4 kB / 400.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001414/0.2149, allocations: 0.7122 MB / 401.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.2149, allocations: 16 kB / 401.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.2149, allocations: 15.98 kB / 401.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.884e-05/0.215, allocations: 16 kB / 401.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.2156, allocations: 191.7 kB / 401.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.031e-05/0.2157, allocations: 31.84 kB / 401.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003899/0.2161, allocations: 35.98 kB / 401.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.2162, allocations: 40 kB / 401.4 MB, free: 3.906 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.0004495/0.2166, allocations: 229.5 kB / 401.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.2168, allocations: 79.48 kB / 401.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.2169, allocations: 74.53 kB / 401.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.2169, allocations: 11.92 kB / 401.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.217, allocations: 0 / 401.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.217, allocations: 0 / 401.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.2192, allocations: 1.318 MB / 403.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.2192, allocations: 0 / 403.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.2197, allocations: 108 kB / 403.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.829e-05/0.2197, allocations: 7.938 kB / 403.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/0.2198, allocations: 15.98 kB / 403.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.2198, allocations: 4 kB / 403.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.2198, allocations: 0 / 403.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.2209, allocations: 0.713 MB / 404 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.221, allocations: 144.6 kB / 404.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.661e-05/0.2211, allocations: 16.03 kB / 404.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.2214, allocations: 19.98 kB / 404.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.2215, allocations: 27.91 kB / 404.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.2216, allocations: 15.98 kB / 404.2 MB, free: 1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005772/0.2221, allocations: 419 kB / 404.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2222, allocations: 4 kB / 404.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008371/0.223, allocations: 140 kB / 404.8 MB, free: 468 kB / 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.000212/0.2232, allocations: 111.1 kB / 404.9 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.2243, allocations: 442.4 kB / 405.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2243, allocations: 0 / 405.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.2246, allocations: 168.1 kB / 405.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.2253, allocations: 71.23 kB / 405.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.2288, allocations: 1.668 MB / 407.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007884/0.2296, allocations: 1.004 MB / 408.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003059/0.2299, allocations: 94 kB / 408.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.2301, allocations: 63.41 kB / 408.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2301, allocations: 0 / 408.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Templates: time 0.0126/0.2427, allocations: 5.084 MB / 413.4 MB, free: 7.676 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)