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.001069/0.001069, allocations: 95.34 kB / 16.31 MB, free: 5.996 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.001369/0.001369, allocations: 184 kB / 17.2 MB, free: 5.914 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.747/1.747, allocations: 205.4 MB / 223.4 MB, free: 5.77 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.0004542/0.0004542, allocations: 12 kB / 280.1 MB, free: 13.08 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3102, allocations: 47.57 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00551/0.3158, allocations: 4.403 MB / 332.1 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003584/0.3194, allocations: 1.46 MB / 333.6 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009628/0.3204, allocations: 22.53 kB / 333.6 MB, free: 12.76 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003111/0.3207, allocations: 108.1 kB / 333.7 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009165/0.3217, allocations: 236.5 kB / 333.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.3227, allocations: 294.4 kB / 334.2 MB, free: 12.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.324, allocations: 0.7574 MB / 335 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005978/0.3246, allocations: 353.6 kB / 335.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005033/0.3251, allocations: 312.9 kB / 335.6 MB, free: 11.34 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.3255, allocations: 345.9 kB / 335.9 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.711e-05/0.3256, allocations: 39.78 kB / 336 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.3258, allocations: 58.86 kB / 336 MB, free: 11.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.326, allocations: 149.9 kB / 336.2 MB, free: 10.97 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.3262, allocations: 202 kB / 336.4 MB, free: 10.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007369/0.327, allocations: 0.7766 MB / 337.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.327, allocations: 0 / 337.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.327, allocations: 0 / 337.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.327, allocations: 0 / 337.2 MB, free: 10.06 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.001784/0.3288, allocations: 1.13 MB / 338.3 MB, free: 8.879 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3288, allocations: 12.03 kB / 338.3 MB, free: 8.867 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.329, allocations: 122.5 kB / 338.4 MB, free: 8.746 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008889/0.3299, allocations: 0.584 MB / 339 MB, free: 8.117 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.33, allocations: 81.94 kB / 339.1 MB, free: 8.035 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.3301, allocations: 100 kB / 339.2 MB, free: 7.938 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3317, allocations: 1.019 MB / 340.2 MB, free: 6.797 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.3317, allocations: 7.938 kB / 340.2 MB, free: 6.789 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.361e-05/0.3318, allocations: 44 kB / 340.3 MB, free: 6.746 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.3318, allocations: 24 kB / 340.3 MB, free: 6.723 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3329, allocations: 0.5578 MB / 340.8 MB, free: 6.168 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.3382, allocations: 5.524 MB / 346.4 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005897/0.3389, allocations: 237 kB / 346.6 MB, free: 108 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002057/0.3391, allocations: 89.11 kB / 346.7 MB, free: 0 / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.3391, allocations: 38.52 kB / 346.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 1.954e-06/0.3392, allocations: 3.938 kB / 346.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.003986/0.3431, allocations: 1.723 MB / 348.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.3432, allocations: 89.05 kB / 348.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006894/0.3439, allocations: 0.6294 MB / 349.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.344, allocations: 29.7 kB / 349.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004067/0.3444, allocations: 0.5948 MB / 349.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3445, allocations: 146.1 kB / 349.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/0.3445, allocations: 16 kB / 349.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3447, allocations: 386.7 kB / 350.3 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.345, allocations: 157.9 kB / 350.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005836/0.3456, allocations: 0.4933 MB / 351 MB, free: 11.37 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003938/0.346, allocations: 230.5 kB / 351.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.346, allocations: 4 kB / 351.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001116/0.3471, allocations: 0.7114 MB / 351.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3472, allocations: 12 kB / 351.9 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.3472, allocations: 12 kB / 351.9 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.3472, allocations: 19.98 kB / 352 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.3479, allocations: 192.1 kB / 352.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/0.3479, allocations: 27.92 kB / 352.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.3483, allocations: 40 kB / 352.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.3483, allocations: 39.98 kB / 352.2 MB, free: 10.09 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.0002928/0.3486, allocations: 229.4 kB / 352.5 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.3487, allocations: 75.06 kB / 352.5 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.3488, allocations: 74.55 kB / 352.6 MB, free: 9.707 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3489, allocations: 11.98 kB / 352.6 MB, free: 9.695 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3489, allocations: 4 kB / 352.6 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3489, allocations: 3.984 kB / 352.6 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.3508, allocations: 1.294 MB / 353.9 MB, free: 8.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3508, allocations: 0 / 353.9 MB, free: 8.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.3513, allocations: 103.9 kB / 354 MB, free: 8.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/0.3513, allocations: 4 kB / 354 MB, free: 8.227 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.3513, allocations: 7.984 kB / 354 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.3513, allocations: 8.031 kB / 354.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3513, allocations: 0 / 354.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.3524, allocations: 0.7357 MB / 354.8 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3525, allocations: 136.2 kB / 354.9 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.3526, allocations: 12.03 kB / 354.9 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.3529, allocations: 23.98 kB / 355 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.353, allocations: 23.97 kB / 355 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.353, allocations: 11.98 kB / 355 MB, free: 7.219 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004839/0.3535, allocations: 423 kB / 355.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3535, allocations: 4 kB / 355.4 MB, free: 6.809 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006802/0.3542, allocations: 139.9 kB / 355.5 MB, free: 6.672 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.0001687/0.3544, allocations: 103.2 kB / 355.6 MB, free: 6.559 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007951/0.3552, allocations: 445.8 kB / 356.1 MB, free: 6.125 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3552, allocations: 0 / 356.1 MB, free: 6.125 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.3554, allocations: 156.2 kB / 356.2 MB, free: 5.973 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.3558, allocations: 63.88 kB / 356.3 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002808/0.3586, allocations: 2.051 MB / 358.3 MB, free: 3.824 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005495/0.3592, allocations: 1.019 MB / 359.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002738/0.3595, allocations: 90.02 kB / 359.5 MB, free: 2.688 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.3596, allocations: 67.41 kB / 359.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3596, allocations: 0 / 359.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of Templates: time 0.009811/0.3695, allocations: 4.492 MB / 364 MB, free: 14.13 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: