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.001351/0.001351, allocations: 105.8 kB / 17.06 MB, free: 6.016 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.001432/0.001432, allocations: 195 kB / 18 MB, free: 5.094 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.749/1.749, 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.001304/0.001304, allocations: 55.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2629/0.3747, allocations: 5.337 MB / 379.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003771/0.3785, allocations: 1.474 MB / 381.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005114/0.3791, allocations: 25.75 kB / 381.3 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.3796, allocations: 220.7 kB / 381.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005384/0.3801, allocations: 194.1 kB / 381.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009484/0.3811, allocations: 393.9 kB / 382.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.3828, allocations: 1.132 MB / 383.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007811/0.3836, allocations: 478.2 kB / 383.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005416/0.3841, allocations: 403.6 kB / 384.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.3845, allocations: 428.6 kB / 384.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.3847, allocations: 83.38 kB / 384.6 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.3849, allocations: 96.83 kB / 384.7 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.3851, allocations: 214 kB / 384.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.3855, allocations: 0.4965 MB / 385.4 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001594/0.3871, allocations: 1.173 MB / 386.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3871, allocations: 0 / 386.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3871, allocations: 0 / 386.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.3871, allocations: 1.125 kB / 386.6 MB, free: 7.426 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.002262/0.3894, allocations: 1.309 MB / 387.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.764e-05/0.3895, allocations: 8.875 kB / 387.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.3898, allocations: 123.2 kB / 388 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.3912, allocations: 0.6561 MB / 388.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.412e-05/0.3913, allocations: 74.97 kB / 388.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.3914, allocations: 104.9 kB / 388.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.3932, allocations: 1.032 MB / 389.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.3933, allocations: 7.375 kB / 389.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.3933, allocations: 44.56 kB / 389.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.342e-05/0.3934, allocations: 25.47 kB / 390 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.3945, allocations: 0.5579 MB / 390.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004789/0.3993, allocations: 5.483 MB / 396 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.3999, allocations: 237.1 kB / 396.2 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.4003, allocations: 156.7 kB / 396.4 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001318/0.4004, allocations: 98.05 kB / 396.5 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.4004, allocations: 36.61 kB / 396.5 MB, free: 204 kB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.825e-06/0.4004, allocations: 1.969 kB / 396.5 MB, free: 204 kB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.004329/0.4048, allocations: 1.704 MB / 398.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.4049, allocations: 86.12 kB / 398.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008978/0.4058, allocations: 0.6404 MB / 399 MB, free: 14.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.4058, allocations: 30.89 kB / 399 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005464/0.4064, allocations: 0.6051 MB / 399.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.4065, allocations: 145.3 kB / 399.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.4067, allocations: 134.3 kB / 399.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.4069, allocations: 384.2 kB / 400.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003393/0.4073, allocations: 155 kB / 400.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.4079, allocations: 0.4926 MB / 400.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009472/0.4089, allocations: 0.6998 MB / 401.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4089, allocations: 3.688 kB / 401.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001662/0.4106, allocations: 0.7088 MB / 402.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.4106, allocations: 13.56 kB / 402.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.4107, allocations: 13.88 kB / 402.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.42e-05/0.4107, allocations: 16.5 kB / 402.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/0.4115, allocations: 199.5 kB / 402.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.961e-05/0.4115, allocations: 25.94 kB / 402.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.412, allocations: 34.88 kB / 402.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.523e-05/0.4121, allocations: 39.19 kB / 402.6 MB, free: 12.18 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.0005034/0.4126, allocations: 230.5 kB / 402.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.4128, allocations: 82.98 kB / 402.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002352/0.4131, allocations: 73.67 kB / 403 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.4131, allocations: 5.531 kB / 403 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/0.4131, allocations: 3.938 kB / 403 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.4132, allocations: 3.203 kB / 403 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.416, allocations: 1.312 MB / 404.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.416, allocations: 2.219 kB / 404.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.4166, allocations: 99.61 kB / 404.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.739e-06/0.4166, allocations: 7.594 kB / 404.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.4167, allocations: 19.95 kB / 404.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.4167, allocations: 6.656 kB / 404.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4167, allocations: 1.531 kB / 404.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.4179, allocations: 0.7026 MB / 405.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.4181, allocations: 142.2 kB / 405.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.4181, allocations: 12.53 kB / 405.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.4185, allocations: 24.41 kB / 405.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.427e-05/0.4186, allocations: 28.34 kB / 405.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.4186, allocations: 18.44 kB / 405.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00068/0.4193, allocations: 419.3 kB / 405.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4193, allocations: 0 / 405.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001186/0.4205, allocations: 136.9 kB / 405.9 MB, free: 10.33 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.0001529/0.4207, allocations: 119.2 kB / 406.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009284/0.4216, allocations: 441.3 kB / 406.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4216, allocations: 1.125 kB / 406.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003129/0.4219, allocations: 156.1 kB / 406.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.4225, allocations: 72.45 kB / 406.7 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.4255, allocations: 1.652 MB / 408.4 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006083/0.4261, allocations: 1.006 MB / 409.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.4264, allocations: 88.45 kB / 409.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.4266, allocations: 64.19 kB / 409.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4266, allocations: 0 / 409.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of Templates: time 0.01151/0.4381, allocations: 5.197 MB / 414.7 MB, free: 5.457 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)