Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001428/0.001428, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.307/1.307, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001219/0.00122, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2221, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007585/0.2297, allocations: 7.349 MB / 332.7 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.2418, allocations: 10.38 MB / 343 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009924/0.2428, allocations: 39.69 kB / 343.1 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.2446, allocations: 0.692 MB / 343.8 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002937/0.2475, allocations: 1.173 MB / 344.9 MB, free: 244 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.2491, allocations: 0.6661 MB / 345.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003365/0.2525, allocations: 2.475 MB / 348.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004567/0.2529, allocations: 291.9 kB / 348.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000514/0.2535, allocations: 457.7 kB / 348.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005479/0.254, allocations: 0.5279 MB / 349.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.2541, allocations: 56 kB / 349.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.2556, allocations: 0.6948 MB / 350.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.2557, allocations: 182.8 kB / 350.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005281/0.2563, allocations: 0.6754 MB / 350.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001881/0.2582, allocations: 1.93 MB / 352.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2582, allocations: 7.938 kB / 352.9 MB, free: 8.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2582, allocations: 0 / 352.9 MB, free: 8.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.814e-05/0.2582, allocations: 4 kB / 352.9 MB, free: 8.23 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.002797/0.261, allocations: 1.977 MB / 354.9 MB, free: 6.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2611, allocations: 8.031 kB / 354.9 MB, free: 6.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.2613, allocations: 198.6 kB / 355.1 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.263, allocations: 1.337 MB / 356.4 MB, free: 4.605 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.2631, allocations: 33 kB / 356.4 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.23e-05/0.2632, allocations: 47.98 kB / 356.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009088/0.2641, allocations: 0.508 MB / 357 MB, free: 4.012 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.2641, allocations: 4 kB / 357 MB, free: 4.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.2642, allocations: 20 kB / 357 MB, free: 3.988 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.2642, allocations: 15.98 kB / 357 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009126/0.2651, allocations: 476.1 kB / 357.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.268, allocations: 2.109 MB / 359.6 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009942/0.269, allocations: 0.6963 MB / 360.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007198/0.2698, allocations: 0.5135 MB / 360.8 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/0.2775, allocations: 6.509 MB / 367.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000566/0.2781, allocations: 286.6 kB / 367.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.524e-06/0.2781, allocations: 0 / 367.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=59): time 0.003559/0.2817, allocations: 1.967 MB / 369.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.2817, allocations: 63.84 kB / 369.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.2831, allocations: 1.288 MB / 370.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.2832, allocations: 33.7 kB / 370.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/0.2839, allocations: 0.7227 MB / 371.7 MB, free: 4.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.284, allocations: 197.1 kB / 371.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.2842, allocations: 122.2 kB / 372 MB, free: 3.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2844, allocations: 330 kB / 372.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/0.2849, allocations: 193.6 kB / 372.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000559/0.2854, allocations: 367.8 kB / 372.9 MB, free: 2.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.2877, allocations: 1.135 MB / 374 MB, free: 1.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2877, allocations: 4 kB / 374 MB, free: 1.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001509/0.2893, allocations: 0.9186 MB / 374.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2893, allocations: 8 kB / 374.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.008e-05/0.2894, allocations: 60.03 kB / 375 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/0.2898, allocations: 159.7 kB / 375.1 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.2902, allocations: 111.8 kB / 375.2 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/0.2931, allocations: 2.517 MB / 377.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004411/0.2935, allocations: 32.02 kB / 377.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.515e-05/0.2936, allocations: 36 kB / 377.8 MB, free: 13.65 MB / 318.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 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004155/0.294, allocations: 281.5 kB / 378.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.2942, allocations: 181.8 kB / 378.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.2961, allocations: 0.8903 MB / 379.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2961, allocations: 4 kB / 379.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2961, allocations: 4 kB / 379.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2961, allocations: 3.984 kB / 379.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000995/0.2971, allocations: 0.867 MB / 380 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.327e-05/0.2972, allocations: 52 kB / 380.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003252/0.2976, allocations: 63.95 kB / 380.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003616/0.2979, allocations: 151 kB / 380.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.298, allocations: 16 kB / 380.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002763/0.3008, allocations: 2.502 MB / 382.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3008, allocations: 0 / 382.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.3026, allocations: 1.061 MB / 383.9 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003029/0.303, allocations: 258.9 kB / 384.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.3031, allocations: 8 kB / 384.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.3035, allocations: 19.98 kB / 384.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3036, allocations: 48.38 kB / 384.2 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.875e-05/0.3037, allocations: 16 kB / 384.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.3047, allocations: 0.8617 MB / 385.1 MB, free: 6.133 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3047, allocations: 0 / 385.1 MB, free: 6.133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008688/0.3056, allocations: 375.8 kB / 385.5 MB, free: 5.766 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007009/0.3063, allocations: 468.1 kB / 385.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001646/0.3079, allocations: 0.8522 MB / 386.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3079, allocations: 0 / 386.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009948/0.3089, allocations: 0.5863 MB / 387.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006773/0.3096, allocations: 185.4 kB / 387.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3134, allocations: 2.417 MB / 390 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008162/0.3143, allocations: 1.174 MB / 391.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005808/0.3148, allocations: 187.2 kB / 391.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.315, allocations: 79.44 kB / 391.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.315, allocations: 0 / 391.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of Templates: time 0.02687/0.3419, allocations: 13.37 MB / 404.8 MB, free: 2.324 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)