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.001255/0.001255, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001231/0.001231, allocations: 194 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001726/0.001726, allocations: 51.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.4524, allocations: 46.63 MB / 324.8 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00841/0.4608, allocations: 5.331 MB / 330.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005134/0.466, allocations: 1.45 MB / 331.6 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.4681, allocations: 33.28 kB / 331.7 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009477/0.469, allocations: 162.3 kB / 331.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001687/0.4708, allocations: 157.5 kB / 332 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.4722, allocations: 340.7 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.4749, allocations: 1.119 MB / 333.4 MB, free: 11.22 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.4759, allocations: 483.4 kB / 333.9 MB, free: 10.92 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.4771, allocations: 404.5 kB / 334.3 MB, free: 10.61 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000648/0.4778, allocations: 429.5 kB / 334.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.4779, allocations: 84 kB / 334.8 MB, free: 10.1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.4782, allocations: 95.98 kB / 334.9 MB, free: 10.01 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002402/0.4784, allocations: 215.1 kB / 335.1 MB, free: 9.797 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.4789, allocations: 0.4971 MB / 335.6 MB, free: 9.297 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001534/0.4805, allocations: 1.126 MB / 336.7 MB, free: 8.168 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.4805, allocations: 0 / 336.7 MB, free: 8.168 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.4805, allocations: 0 / 336.7 MB, free: 8.168 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.4806, allocations: 0 / 336.7 MB, free: 8.168 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.002472/0.483, allocations: 1.301 MB / 338 MB, free: 6.812 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.216e-05/0.4831, allocations: 8.031 kB / 338 MB, free: 6.805 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.4834, allocations: 130.4 kB / 338.2 MB, free: 6.676 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.4846, allocations: 0.6107 MB / 338.8 MB, free: 6.023 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.4848, allocations: 77.94 kB / 338.8 MB, free: 5.949 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.485, allocations: 99.98 kB / 338.9 MB, free: 5.852 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.487, allocations: 1.024 MB / 340 MB, free: 4.703 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.293e-05/0.4871, allocations: 11.92 kB / 340 MB, free: 4.691 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.017e-05/0.4872, allocations: 47.98 kB / 340 MB, free: 4.645 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.689e-05/0.4872, allocations: 28 kB / 340.1 MB, free: 4.617 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.4883, allocations: 0.5539 MB / 340.6 MB, free: 4.062 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006274/0.4946, allocations: 5.52 MB / 346.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/0.4954, allocations: 236.9 kB / 346.4 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.4958, allocations: 161.6 kB / 346.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000346/0.4961, allocations: 89.09 kB / 346.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.4962, allocations: 38.5 kB / 346.6 MB, free: 13.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 4.097e-06/0.4962, allocations: 7.938 kB / 346.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004615/0.5008, allocations: 1.695 MB / 348.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.5009, allocations: 85.05 kB / 348.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009602/0.5019, allocations: 0.6411 MB / 349.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.502, allocations: 29.7 kB / 349.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.5025, allocations: 0.6026 MB / 349.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.5026, allocations: 146 kB / 349.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.5029, allocations: 134.5 kB / 350 MB, free: 10.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.5031, allocations: 382.8 kB / 350.3 MB, free: 9.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003087/0.5034, allocations: 153.9 kB / 350.5 MB, free: 9.672 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005882/0.504, allocations: 0.4893 MB / 351 MB, free: 9.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.5051, allocations: 0.6998 MB / 351.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.5051, allocations: 4 kB / 351.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001363/0.5065, allocations: 0.7195 MB / 352.4 MB, free: 7.422 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.5065, allocations: 10.34 kB / 352.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.5066, allocations: 16.12 kB / 352.4 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.165e-05/0.5066, allocations: 16 kB / 352.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.5073, allocations: 187.7 kB / 352.6 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.275e-05/0.5073, allocations: 31.8 kB / 352.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004253/0.5078, allocations: 35.98 kB / 352.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.5078, allocations: 40 kB / 352.7 MB, free: 7.094 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004997/0.5083, allocations: 225.5 kB / 353 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.5085, allocations: 75.06 kB / 353 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.5087, allocations: 78.53 kB / 353.1 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.5087, allocations: 4 kB / 353.1 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/0.5087, allocations: 3.938 kB / 353.1 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.5088, allocations: 11.92 kB / 353.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.5113, allocations: 1.317 MB / 354.4 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.5113, allocations: 4 kB / 354.4 MB, free: 5.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.5118, allocations: 103.9 kB / 354.6 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.5118, allocations: 4 kB / 354.6 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.5119, allocations: 11.98 kB / 354.6 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.5119, allocations: 7.938 kB / 354.6 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5119, allocations: 3.938 kB / 354.6 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.5131, allocations: 0.7006 MB / 355.3 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.5133, allocations: 144.2 kB / 355.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.465e-05/0.5133, allocations: 8 kB / 355.4 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.5137, allocations: 27.92 kB / 355.5 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.5138, allocations: 31.91 kB / 355.5 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.5138, allocations: 19.98 kB / 355.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005308/0.5143, allocations: 423 kB / 355.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5144, allocations: 0 / 355.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008428/0.5152, allocations: 136 kB / 356.1 MB, free: 3.645 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002232/0.5154, allocations: 115.1 kB / 356.2 MB, free: 3.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009408/0.5164, allocations: 446.3 kB / 356.6 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5164, allocations: 8 kB / 356.6 MB, free: 3.078 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.5167, allocations: 155.7 kB / 356.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.5173, allocations: 75.75 kB / 356.8 MB, free: 2.855 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.5212, allocations: 2.097 MB / 358.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007832/0.522, allocations: 1.008 MB / 359.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003583/0.5224, allocations: 94 kB / 360 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.5226, allocations: 71.41 kB / 360.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of SimCode: time 1.713e-06/0.5226, allocations: 0 / 360.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of Templates: time 0.01263/0.5352, allocations: 4.867 MB / 365 MB, free: 10.64 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)