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.001312/0.001312, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001586/0.001586, allocations: 168.7 kB / 15.95 MB, free: 204 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.103/2.103, allocations: 205.4 MB / 222.1 MB, free: 5.379 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.0006299/0.0006303, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3107, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005596/0.3163, allocations: 4.583 MB / 331.1 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004082/0.3205, allocations: 1.409 MB / 332.5 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.3218, allocations: 27.62 kB / 332.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005461/0.3224, allocations: 159.2 kB / 332.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006822/0.323, allocations: 150.7 kB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009409/0.324, allocations: 297.2 kB / 333.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.3252, allocations: 0.9921 MB / 334.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005833/0.3258, allocations: 349.6 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005072/0.3263, allocations: 318.4 kB / 334.7 MB, free: 11.13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004292/0.3268, allocations: 355.7 kB / 335.1 MB, free: 10.85 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.3269, allocations: 44 kB / 335.1 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.327, allocations: 48 kB / 335.2 MB, free: 10.76 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.3272, allocations: 155.3 kB / 335.3 MB, free: 10.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.3274, allocations: 201.1 kB / 335.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007459/0.3281, allocations: 0.7766 MB / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3281, allocations: 0 / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3281, allocations: 0 / 336.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3282, 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.001719/0.3299, allocations: 1.13 MB / 337.4 MB, free: 8.445 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3299, allocations: 8.031 kB / 337.4 MB, free: 8.438 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.3301, allocations: 122.5 kB / 337.6 MB, free: 8.316 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008726/0.331, allocations: 0.5918 MB / 338.1 MB, free: 7.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.3311, allocations: 85.95 kB / 338.2 MB, free: 7.594 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.3313, allocations: 96 kB / 338.3 MB, free: 7.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.3329, allocations: 1.031 MB / 339.4 MB, free: 6.348 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.333, allocations: 7.938 kB / 339.4 MB, free: 6.34 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.906e-05/0.3331, allocations: 44 kB / 339.4 MB, free: 6.297 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.3331, allocations: 28 kB / 339.4 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.3342, allocations: 0.5539 MB / 340 MB, free: 5.719 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005383/0.3396, allocations: 5.52 MB / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006374/0.3403, allocations: 233 kB / 345.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.3406, allocations: 165.6 kB / 345.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002042/0.3408, allocations: 89.33 kB / 346 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.3409, allocations: 38.56 kB / 346 MB, free: 15.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 2.525e-06/0.3409, allocations: 4 kB / 346 MB, free: 15.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.00415/0.345, allocations: 1.774 MB / 347.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.3451, allocations: 81.11 kB / 347.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007271/0.3459, allocations: 0.6294 MB / 348.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3459, allocations: 29.7 kB / 348.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005277/0.3464, allocations: 0.5988 MB / 349.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.3466, allocations: 149.8 kB / 349.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.3466, allocations: 20 kB / 349.3 MB, free: 11.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3468, allocations: 390.7 kB / 349.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.3471, allocations: 153.9 kB / 349.8 MB, free: 11.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005603/0.3477, allocations: 0.4933 MB / 350.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/0.3481, allocations: 234.6 kB / 350.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.3482, allocations: 4 kB / 350.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001186/0.3493, allocations: 0.7267 MB / 351.3 MB, free: 9.742 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.3494, allocations: 8 kB / 351.3 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.3494, allocations: 12.69 kB / 351.3 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.251e-05/0.3495, allocations: 20 kB / 351.3 MB, free: 9.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006438/0.3501, allocations: 203.7 kB / 351.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.62e-05/0.3501, allocations: 23.88 kB / 351.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003417/0.3505, allocations: 39.94 kB / 351.6 MB, free: 9.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.3505, allocations: 39.94 kB / 351.6 MB, free: 9.402 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.0003212/0.3509, allocations: 233.5 kB / 351.9 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.351, allocations: 75.06 kB / 351.9 MB, free: 9.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.3511, allocations: 70.55 kB / 352 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.3511, allocations: 4 kB / 352 MB, free: 9.016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3511, allocations: 4 kB / 352 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3512, allocations: 3.984 kB / 352 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.3532, allocations: 1.356 MB / 353.4 MB, free: 7.578 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3532, allocations: 7.938 kB / 353.4 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.3536, allocations: 111.9 kB / 353.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3536, allocations: 0 / 353.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.3537, allocations: 8.156 kB / 353.5 MB, free: 7.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3537, allocations: 8 kB / 353.5 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3537, allocations: 4 kB / 353.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009821/0.3547, allocations: 0.7242 MB / 354.2 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.3548, allocations: 140.2 kB / 354.4 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.3549, allocations: 12 kB / 354.4 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.3551, allocations: 23.98 kB / 354.4 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.3552, allocations: 35.89 kB / 354.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.3552, allocations: 16 kB / 354.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004443/0.3557, allocations: 419 kB / 354.9 MB, free: 6.039 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3557, allocations: 0 / 354.9 MB, free: 6.039 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006328/0.3563, allocations: 136 kB / 355 MB, free: 5.906 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.0001398/0.3565, allocations: 111.2 kB / 355.1 MB, free: 5.785 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007649/0.3573, allocations: 448.7 kB / 355.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3573, allocations: 1.625 kB / 355.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.3576, allocations: 164.5 kB / 355.7 MB, free: 5.188 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.3581, allocations: 71.59 kB / 355.8 MB, free: 5.117 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.3611, allocations: 2.093 MB / 357.9 MB, free: 2.977 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.3617, allocations: 1.008 MB / 358.9 MB, free: 1.938 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.362, allocations: 86.02 kB / 359 MB, free: 1.852 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.3621, allocations: 63.42 kB / 359 MB, free: 1.789 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3621, allocations: 7.938 kB / 359 MB, free: 1.781 MB / 286.1 MB Notification: Performance of Templates: time 0.01043/0.3726, allocations: 4.512 MB / 363.5 MB, free: 13.27 MB / 302.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)