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.001064/0.001064, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001665/0.001665, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.959/1.959, allocations: 205.4 MB / 222.1 MB, free: 5.535 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.0005678/0.0005682, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3898, allocations: 47.58 MB / 326.4 MB, free: 1.48 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005368/0.3952, allocations: 4.406 MB / 330.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.399, allocations: 1.455 MB / 332.3 MB, free: 12.83 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.4001, allocations: 22.97 kB / 332.3 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.4003, allocations: 100.5 kB / 332.4 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009308/0.4013, allocations: 240.5 kB / 332.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.4022, allocations: 300.9 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.4035, allocations: 0.7556 MB / 333.7 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006097/0.4041, allocations: 345.2 kB / 334 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000557/0.4047, allocations: 316.8 kB / 334.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004491/0.4052, allocations: 349.9 kB / 334.7 MB, free: 11.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.4053, allocations: 39.91 kB / 334.7 MB, free: 11.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.4055, allocations: 54.72 kB / 334.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.4056, allocations: 155.2 kB / 334.9 MB, free: 10.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.4058, allocations: 201.1 kB / 335.1 MB, free: 10.78 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007745/0.4066, allocations: 0.7727 MB / 335.9 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4066, allocations: 0 / 335.9 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.117e-06/0.4066, allocations: 4 kB / 335.9 MB, free: 10 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.4067, allocations: 0 / 335.9 MB, free: 10 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.001891/0.4086, allocations: 1.13 MB / 337 MB, free: 8.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.4086, allocations: 8.031 kB / 337 MB, free: 8.812 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.4088, allocations: 126.5 kB / 337.2 MB, free: 8.688 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.4098, allocations: 0.5878 MB / 337.8 MB, free: 8.055 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.214e-05/0.4099, allocations: 77.95 kB / 337.8 MB, free: 7.977 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.4101, allocations: 96 kB / 337.9 MB, free: 7.883 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.4118, allocations: 1.023 MB / 339 MB, free: 6.738 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.4119, allocations: 7.938 kB / 339 MB, free: 6.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.4119, allocations: 44 kB / 339 MB, free: 6.688 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/0.412, allocations: 28 kB / 339 MB, free: 6.66 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.4131, allocations: 0.5539 MB / 339.6 MB, free: 6.109 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.4183, allocations: 5.532 MB / 345.1 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/0.419, allocations: 232.9 kB / 345.3 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002615/0.4193, allocations: 89.09 kB / 345.4 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.4194, allocations: 42.52 kB / 345.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 3.457e-06/0.4194, allocations: 0 / 345.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.004287/0.4237, allocations: 1.718 MB / 347.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.4238, allocations: 85.11 kB / 347.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/0.4247, allocations: 0.6294 MB / 347.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.4247, allocations: 33.64 kB / 347.9 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005101/0.4252, allocations: 0.5987 MB / 348.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.4254, allocations: 146.1 kB / 348.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.4254, allocations: 16 kB / 348.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4256, allocations: 390.6 kB / 349.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.4259, allocations: 153.9 kB / 349.2 MB, free: 11.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/0.4266, allocations: 0.4933 MB / 349.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.427, allocations: 238.2 kB / 349.9 MB, free: 11.08 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.427, allocations: 4 kB / 350 MB, free: 11.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001169/0.4282, allocations: 0.7077 MB / 350.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.4282, allocations: 12 kB / 350.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.701e-05/0.4282, allocations: 12 kB / 350.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.4283, allocations: 16 kB / 350.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006339/0.4289, allocations: 195.7 kB / 350.9 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.32e-05/0.429, allocations: 23.92 kB / 350.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.4294, allocations: 40.17 kB / 351 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.4294, allocations: 36 kB / 351 MB, free: 10.03 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 (94): * Single equations (assignments): 94 * 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.0004192/0.4299, allocations: 233.4 kB / 351.2 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.43, allocations: 75.06 kB / 351.3 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.4301, allocations: 74.53 kB / 351.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.4302, allocations: 4 kB / 351.4 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.4302, allocations: 0 / 351.4 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4302, allocations: 4 kB / 351.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.4324, allocations: 1.304 MB / 352.7 MB, free: 8.273 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4324, allocations: 4.031 kB / 352.7 MB, free: 8.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/0.4329, allocations: 103.9 kB / 352.8 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-06/0.4329, allocations: 4 kB / 352.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.433, allocations: 8 kB / 352.8 MB, free: 8.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.433, allocations: 4 kB / 352.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.433, allocations: 0 / 352.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.434, allocations: 0.7318 MB / 353.5 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.4342, allocations: 136.2 kB / 353.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.005e-05/0.4343, allocations: 12 kB / 353.7 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.4345, allocations: 27.98 kB / 353.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-05/0.4346, allocations: 27.95 kB / 353.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.4347, allocations: 8 kB / 353.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004581/0.4351, allocations: 419 kB / 354.1 MB, free: 6.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4351, allocations: 0 / 354.1 MB, free: 6.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007279/0.4359, allocations: 140 kB / 354.3 MB, free: 6.621 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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.0001637/0.436, allocations: 111.2 kB / 354.4 MB, free: 6.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008142/0.4369, allocations: 444.8 kB / 354.8 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4369, allocations: 4.125 kB / 354.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.4372, allocations: 151.8 kB / 355 MB, free: 5.918 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.4376, allocations: 67.23 kB / 355 MB, free: 5.852 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.4406, allocations: 2.057 MB / 357.1 MB, free: 3.762 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.4413, allocations: 1.019 MB / 358.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003007/0.4416, allocations: 98 kB / 358.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.4417, allocations: 63.41 kB / 358.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4418, allocations: 0 / 358.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of Templates: time 0.01097/0.4527, allocations: 4.481 MB / 362.8 MB, free: 14.07 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: