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.001275/0.001276, allocations: 99 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.001254/0.001254, 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 2.007/2.007, allocations: 205.4 MB / 222.1 MB, free: 5.711 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.0007602/0.0007604, allocations: 16 kB / 278.9 MB, free: 12.95 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3513, allocations: 47.59 MB / 326.4 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005506/0.3569, allocations: 4.405 MB / 330.9 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003392/0.3603, allocations: 1.451 MB / 332.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007652/0.3611, allocations: 23.16 kB / 332.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.3613, allocations: 101.1 kB / 332.4 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008194/0.3622, allocations: 239.2 kB / 332.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008307/0.363, allocations: 301.6 kB / 333 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001247/0.3643, allocations: 0.7598 MB / 333.7 MB, free: 11.72 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00065/0.3649, allocations: 337.4 kB / 334 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006124/0.3656, allocations: 320.7 kB / 334.4 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004676/0.366, allocations: 349.2 kB / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.95e-05/0.3662, allocations: 40.62 kB / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.3664, allocations: 54.56 kB / 334.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.3666, allocations: 154 kB / 334.9 MB, free: 10.96 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002135/0.3668, allocations: 197.6 kB / 335.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000802/0.3676, allocations: 0.7766 MB / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3676, allocations: 0 / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.3676, allocations: 0 / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.3676, allocations: 0 / 335.9 MB, free: 10.02 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.001919/0.3696, allocations: 1.126 MB / 337 MB, free: 8.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.3696, allocations: 16.03 kB / 337.1 MB, free: 8.824 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.3698, allocations: 122.5 kB / 337.2 MB, free: 8.703 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009484/0.3708, allocations: 0.5918 MB / 337.8 MB, free: 8.066 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.841e-05/0.3709, allocations: 77.95 kB / 337.8 MB, free: 7.988 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.371, allocations: 96 kB / 337.9 MB, free: 7.895 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3725, allocations: 1.019 MB / 339 MB, free: 6.754 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.3726, allocations: 7.938 kB / 339 MB, free: 6.746 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/0.3726, allocations: 47.94 kB / 339 MB, free: 6.699 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.632e-05/0.3727, allocations: 24 kB / 339 MB, free: 6.676 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.3738, allocations: 0.5578 MB / 339.6 MB, free: 6.121 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.3788, allocations: 5.52 MB / 345.1 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005325/0.3794, allocations: 245 kB / 345.3 MB, free: 56 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/0.3796, allocations: 85.11 kB / 345.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.3796, allocations: 38.52 kB / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 2.805e-06/0.3797, allocations: 0 / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.003746/0.3834, allocations: 1.723 MB / 347.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3835, allocations: 81.11 kB / 347.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/0.3842, allocations: 0.6372 MB / 347.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.3842, allocations: 33.7 kB / 347.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.3846, allocations: 0.5909 MB / 348.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.596e-05/0.3847, allocations: 150.1 kB / 348.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.3847, allocations: 16 kB / 348.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3849, allocations: 386.7 kB / 349.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.3852, allocations: 157.9 kB / 349.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.3857, allocations: 497.1 kB / 349.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.3861, allocations: 234.5 kB / 349.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3861, allocations: 4 kB / 349.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001042/0.3872, allocations: 0.7111 MB / 350.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.3872, allocations: 12.78 kB / 350.7 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.3872, allocations: 12 kB / 350.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.3873, allocations: 20 kB / 350.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006324/0.3879, allocations: 199.6 kB / 350.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/0.3879, allocations: 19.94 kB / 350.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.3883, allocations: 39.98 kB / 351 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.3883, allocations: 32 kB / 351 MB, free: 10.05 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.000285/0.3886, allocations: 241.4 kB / 351.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.3887, allocations: 75.06 kB / 351.3 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.3888, allocations: 70.55 kB / 351.4 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3889, allocations: 4 kB / 351.4 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3889, allocations: 4 kB / 351.4 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3889, allocations: 3.984 kB / 351.4 MB, free: 9.652 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.3908, allocations: 1.294 MB / 352.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3908, allocations: 0 / 352.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/0.3912, allocations: 111.8 kB / 352.8 MB, free: 8.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.3913, allocations: 4 kB / 352.8 MB, free: 8.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.3913, allocations: 11.98 kB / 352.8 MB, free: 8.172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3913, allocations: 4 kB / 352.8 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3913, allocations: 0 / 352.8 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.3923, allocations: 0.7362 MB / 353.5 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.3924, allocations: 136.2 kB / 353.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.805e-05/0.3925, allocations: 8 kB / 353.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.3928, allocations: 32.02 kB / 353.7 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.3928, allocations: 23.97 kB / 353.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3929, allocations: 8 kB / 353.7 MB, free: 7.176 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004232/0.3933, allocations: 423 kB / 354.1 MB, free: 6.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3933, allocations: 4 kB / 354.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006139/0.3939, allocations: 136 kB / 354.3 MB, free: 6.633 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.0001378/0.3941, allocations: 103.2 kB / 354.4 MB, free: 6.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.3948, allocations: 446.2 kB / 354.8 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3948, allocations: 0 / 354.8 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002594/0.3951, allocations: 163.9 kB / 355 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.3954, allocations: 59.31 kB / 355 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.3981, allocations: 2.051 MB / 357.1 MB, free: 3.781 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/0.3987, allocations: 1.015 MB / 358.1 MB, free: 2.738 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002814/0.399, allocations: 98 kB / 358.2 MB, free: 2.641 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.3991, allocations: 67.41 kB / 358.3 MB, free: 2.574 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3991, allocations: 0 / 358.3 MB, free: 2.574 MB / 286.1 MB Notification: Performance of Templates: time 0.009986/0.4091, allocations: 4.481 MB / 362.7 MB, free: 14.09 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: