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.001043/0.001043, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001184/0.001185, allocations: 172.7 kB / 15.95 MB, free: 208 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.59/1.59, allocations: 205.4 MB / 222.1 MB, free: 5.492 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.0005054/0.0005056, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3363, allocations: 47.59 MB / 326.5 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005407/0.3418, allocations: 4.582 MB / 331.1 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.3453, allocations: 1.41 MB / 332.5 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006878/0.346, allocations: 23.75 kB / 332.5 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.3464, allocations: 162.8 kB / 332.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005017/0.3469, allocations: 150 kB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007613/0.3477, allocations: 294.1 kB / 333.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.3489, allocations: 0.9961 MB / 334.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000659/0.3496, allocations: 349.5 kB / 334.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004783/0.3501, allocations: 321.2 kB / 334.7 MB, free: 11.13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.3505, allocations: 356.3 kB / 335.1 MB, free: 10.84 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.796e-05/0.3506, allocations: 40 kB / 335.1 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.3507, allocations: 51.98 kB / 335.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.3509, allocations: 147.2 kB / 335.3 MB, free: 10.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3511, allocations: 205.1 kB / 335.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006889/0.3518, allocations: 0.7727 MB / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.838e-06/0.3518, allocations: 0 / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3518, allocations: 0 / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3518, allocations: 0 / 336.3 MB, free: 9.625 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.001755/0.3536, allocations: 1.134 MB / 337.4 MB, free: 8.441 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.3536, allocations: 11.97 kB / 337.4 MB, free: 8.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.3538, allocations: 126.5 kB / 337.6 MB, free: 8.305 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008956/0.3547, allocations: 0.5917 MB / 338.2 MB, free: 7.668 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.497e-05/0.3548, allocations: 73.95 kB / 338.2 MB, free: 7.594 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.355, allocations: 108 kB / 338.3 MB, free: 7.488 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.3568, allocations: 1.015 MB / 339.3 MB, free: 6.352 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.3568, allocations: 7.984 kB / 339.4 MB, free: 6.344 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.42e-05/0.3569, allocations: 47.94 kB / 339.4 MB, free: 6.297 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.3569, allocations: 28 kB / 339.4 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.358, allocations: 0.5617 MB / 340 MB, free: 5.711 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004963/0.363, allocations: 5.516 MB / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000553/0.3636, allocations: 229 kB / 345.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.3639, allocations: 165.6 kB / 345.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.3642, allocations: 85.34 kB / 346 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.3642, allocations: 50.48 kB / 346 MB, free: 15.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 1.387e-05/0.3642, allocations: 3.984 kB / 346 MB, free: 15.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003857/0.3681, allocations: 1.77 MB / 347.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.3682, allocations: 81.11 kB / 347.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008397/0.369, allocations: 0.6372 MB / 348.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.3691, allocations: 29.7 kB / 348.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004682/0.3695, allocations: 0.591 MB / 349.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.3697, allocations: 157.8 kB / 349.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.3697, allocations: 16 kB / 349.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.3699, allocations: 386.8 kB / 349.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.3702, allocations: 157.9 kB / 349.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.3708, allocations: 0.4932 MB / 350.3 MB, free: 10.7 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.3712, allocations: 230.7 kB / 350.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3712, allocations: 4 kB / 350.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001131/0.3724, allocations: 0.7268 MB / 351.3 MB, free: 9.738 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.3724, allocations: 15.92 kB / 351.3 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3724, allocations: 12 kB / 351.3 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.262e-05/0.3725, allocations: 20.56 kB / 351.3 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.3731, allocations: 203.7 kB / 351.5 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/0.3732, allocations: 23.92 kB / 351.6 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.3735, allocations: 39.94 kB / 351.6 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.325e-05/0.3736, allocations: 36 kB / 351.6 MB, free: 9.395 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 (96): * Single equations (assignments): 96 * 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.0003599/0.374, allocations: 233.5 kB / 351.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.3741, allocations: 79 kB / 351.9 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.3742, allocations: 78.53 kB / 352 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3742, allocations: 8 kB / 352 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.3743, allocations: 0 / 352 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3743, allocations: 0 / 352 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.3764, allocations: 1.344 MB / 353.4 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3764, allocations: 0 / 353.4 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.3768, allocations: 111.9 kB / 353.5 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.3769, allocations: 4 kB / 353.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.3769, allocations: 11.98 kB / 353.5 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.3769, allocations: 4.094 kB / 353.5 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3769, allocations: 8 kB / 353.5 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3779, allocations: 0.7247 MB / 354.2 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.3781, allocations: 140.2 kB / 354.4 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/0.3781, allocations: 15.98 kB / 354.4 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.3784, allocations: 23.98 kB / 354.4 MB, free: 6.484 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.3785, allocations: 32.05 kB / 354.4 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.3785, allocations: 19.98 kB / 354.4 MB, free: 6.434 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004722/0.379, allocations: 415 kB / 354.9 MB, free: 6.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.379, allocations: 0 / 354.9 MB, free: 6.035 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006786/0.3797, allocations: 140 kB / 355 MB, free: 5.898 MB / 286.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 (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.0001484/0.3799, allocations: 107.2 kB / 355.1 MB, free: 5.781 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007874/0.3807, allocations: 457.1 kB / 355.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3807, allocations: 0 / 355.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.381, allocations: 169.1 kB / 355.7 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.3816, allocations: 71.3 kB / 355.8 MB, free: 5.102 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.3843, allocations: 2.082 MB / 357.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.3848, allocations: 1 MB / 358.9 MB, free: 1.941 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.3852, allocations: 94 kB / 358.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.3853, allocations: 71.41 kB / 359 MB, free: 1.777 MB / 286.1 MB Notification: Performance of SimCode: time 1.893e-06/0.3853, allocations: 0 / 359 MB, free: 1.777 MB / 286.1 MB Notification: Performance of Templates: time 0.01052/0.3959, allocations: 4.516 MB / 363.5 MB, free: 13.26 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (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)