Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.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.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 86.72 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.001546/0.001546, 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 1.473/1.473, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.0004637/0.000464, allocations: 8 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2621, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006492/0.2687, allocations: 6.421 MB / 332.9 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.2808, allocations: 9.497 MB / 342.4 MB, free: 3.59 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.282, allocations: 35.69 kB / 342.4 MB, free: 3.555 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.2837, allocations: 0.5321 MB / 343 MB, free: 3.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003721/0.2874, allocations: 0.9002 MB / 343.9 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001805/0.2892, allocations: 454.8 kB / 344.3 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004413/0.2936, allocations: 2.304 MB / 346.6 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005844/0.2943, allocations: 255.2 kB / 346.9 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006626/0.2949, allocations: 402 kB / 347.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005154/0.2955, allocations: 485 kB / 347.7 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.454e-05/0.2956, allocations: 28 kB / 347.8 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.2975, allocations: 0.6324 MB / 348.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.2976, allocations: 151 kB / 348.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.298, allocations: 312.8 kB / 348.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.2994, allocations: 1.394 MB / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.2994, allocations: 4 kB / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2994, allocations: 0 / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.2995, allocations: 0 / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002619/0.3021, allocations: 1.78 MB / 352 MB, free: 9.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3021, allocations: 12.03 kB / 352 MB, free: 9.828 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.3024, allocations: 193.7 kB / 352.2 MB, free: 9.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.3042, allocations: 1.271 MB / 353.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.3043, allocations: 33 kB / 353.5 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.3044, allocations: 47.98 kB / 353.6 MB, free: 8.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009362/0.3053, allocations: 0.5158 MB / 354.1 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3053, allocations: 0 / 354.1 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.3054, allocations: 16 kB / 354.1 MB, free: 7.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.3054, allocations: 19.98 kB / 354.1 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009052/0.3063, allocations: 496 kB / 354.6 MB, free: 7.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002938/0.3093, allocations: 2.102 MB / 356.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009767/0.3103, allocations: 0.7237 MB / 357.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007462/0.311, allocations: 0.5368 MB / 358 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008254/0.3193, allocations: 6.529 MB / 364.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006275/0.3199, allocations: 306.5 kB / 364.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 3.447e-06/0.32, allocations: 0 / 364.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=59): time 0.004138/0.3241, allocations: 2.003 MB / 366.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.3242, allocations: 59.83 kB / 366.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.326, allocations: 1.284 MB / 368.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/0.326, allocations: 29.7 kB / 368.2 MB, free: 8.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000673/0.3267, allocations: 0.7072 MB / 368.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.3269, allocations: 209 kB / 369.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/0.3269, allocations: 12 kB / 369.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3271, allocations: 334 kB / 369.4 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003981/0.3275, allocations: 205.6 kB / 369.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005098/0.328, allocations: 372.3 kB / 370 MB, free: 6.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.3285, allocations: 258.8 kB / 370.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.3285, allocations: 4 kB / 370.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001688/0.3302, allocations: 0.9265 MB / 371.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.3302, allocations: 8.094 kB / 371.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.3304, allocations: 63.92 kB / 371.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004791/0.3308, allocations: 151.8 kB / 371.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.3313, allocations: 119.9 kB / 371.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002965/0.3343, allocations: 2.292 MB / 373.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005177/0.3348, allocations: 39.92 kB / 373.8 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.3349, allocations: 32 kB / 373.9 MB, free: 2.512 MB / 302.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005951/0.3355, allocations: 277.7 kB / 374.1 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.3357, allocations: 181.8 kB / 374.3 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.3377, allocations: 0.9137 MB / 375.2 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3377, allocations: 4 kB / 375.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3377, allocations: 4 kB / 375.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3377, allocations: 0 / 375.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.3389, allocations: 0.8748 MB / 376.1 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.669e-05/0.339, allocations: 60 kB / 376.2 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.3393, allocations: 63.89 kB / 376.2 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000404/0.3397, allocations: 150.8 kB / 376.4 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.3397, allocations: 20 kB / 376.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.3424, allocations: 2.276 MB / 378.7 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.3424, allocations: 7.891 kB / 378.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.3443, allocations: 1.096 MB / 379.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/0.3447, allocations: 254.9 kB / 380 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.3449, allocations: 8 kB / 380 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.3452, allocations: 23.98 kB / 380.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3454, allocations: 56.25 kB / 380.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.645e-05/0.3454, allocations: 27.98 kB / 380.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001177/0.3466, allocations: 0.8382 MB / 381 MB, free: 11.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3466, allocations: 0 / 381 MB, free: 11.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3477, allocations: 379.8 kB / 381.3 MB, free: 10.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007262/0.3484, allocations: 428.2 kB / 381.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.3501, allocations: 0.8563 MB / 382.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3501, allocations: 0 / 382.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009418/0.351, allocations: 0.5904 MB / 383.2 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006925/0.3517, allocations: 182.3 kB / 383.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.3555, allocations: 2.751 MB / 386.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007146/0.3562, allocations: 1.174 MB / 387.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006247/0.3569, allocations: 183.2 kB / 387.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.357, allocations: 87.42 kB / 387.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of SimCode: time 1.362e-06/0.357, allocations: 0 / 387.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of Templates: time 0.02584/0.3829, allocations: 12.48 MB / 400.1 MB, free: 7.914 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)