Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001345/0.001345, allocations: 103.1 kB / 16.5 MB, free: 6.707 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.001637/0.001637, allocations: 186.6 kB / 17.42 MB, free: 6.07 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.374/1.374, allocations: 205.1 MB / 223.3 MB, free: 12.5 MB / 190.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.001217/0.001217, allocations: 51.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.0952, allocations: 46.61 MB / 325.9 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007375/0.1026, allocations: 7.327 MB / 333.3 MB, free: 13.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.117, allocations: 10.6 MB / 343.9 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.1189, allocations: 39.69 kB / 343.9 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002414/0.1214, allocations: 0.6139 MB / 344.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00457/0.1259, allocations: 0.9563 MB / 345.5 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.1281, allocations: 495.7 kB / 346 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004266/0.1323, allocations: 2.404 MB / 348.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005748/0.1329, allocations: 260.3 kB / 348.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005989/0.1336, allocations: 445.6 kB / 349.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004428/0.134, allocations: 0.5045 MB / 349.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.105e-05/0.1341, allocations: 36 kB / 349.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.1359, allocations: 0.6831 MB / 350.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1361, allocations: 174.8 kB / 350.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007266/0.1368, allocations: 0.6559 MB / 351.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002097/0.1389, allocations: 1.891 MB / 353 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.139, allocations: 0 / 353 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.139, allocations: 0 / 353 MB, free: 9.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.139, allocations: 0 / 353 MB, free: 9.707 MB / 302.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.002854/0.1418, allocations: 1.977 MB / 355 MB, free: 7.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1419, allocations: 16.03 kB / 355 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.1421, allocations: 198.6 kB / 355.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.1439, allocations: 1.345 MB / 356.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.1439, allocations: 29 kB / 356.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.304e-05/0.144, allocations: 44 kB / 356.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009164/0.1449, allocations: 0.5119 MB / 357.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1449, allocations: 0 / 357.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/0.145, allocations: 16 kB / 357.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.145, allocations: 23.98 kB / 357.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009045/0.1459, allocations: 472.1 kB / 357.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.1488, allocations: 2.104 MB / 359.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009676/0.1498, allocations: 0.7118 MB / 360.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007285/0.1505, allocations: 0.5096 MB / 360.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00775/0.1583, allocations: 6.505 MB / 367.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000603/0.1589, allocations: 298.5 kB / 367.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 3.005e-06/0.1589, allocations: 0 / 367.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003904/0.1629, allocations: 1.963 MB / 369.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.1629, allocations: 55.84 kB / 369.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.1646, allocations: 1.296 MB / 371.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.1647, allocations: 37.7 kB / 371.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006305/0.1653, allocations: 0.7072 MB / 371.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.1655, allocations: 209 kB / 372 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.1657, allocations: 122.2 kB / 372.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1659, allocations: 330 kB / 372.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.1663, allocations: 197.6 kB / 372.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.1668, allocations: 371.7 kB / 373 MB, free: 4.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/0.1691, allocations: 1.131 MB / 374.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1691, allocations: 4 kB / 374.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001561/0.1706, allocations: 0.9181 MB / 375.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.1707, allocations: 8 kB / 375.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.117e-05/0.1708, allocations: 60 kB / 375.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004085/0.1712, allocations: 156.7 kB / 375.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004726/0.1717, allocations: 115.8 kB / 375.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1687/0.3404, allocations: 2.285 MB / 377.7 MB, free: 52.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007307/0.3411, allocations: 25.95 kB / 377.7 MB, free: 52.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.116e-05/0.3412, allocations: 38.38 kB / 377.7 MB, free: 52.67 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.000544/0.3418, allocations: 276.4 kB / 378 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.342, allocations: 182.8 kB / 378.2 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/0.3441, allocations: 0.8857 MB / 379.1 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.3442, allocations: 5.844 kB / 379.1 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3442, allocations: 2.656 kB / 379.1 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3442, allocations: 2.969 kB / 379.1 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.3455, allocations: 0.866 MB / 379.9 MB, free: 52.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-05/0.3456, allocations: 59.12 kB / 380 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.3459, allocations: 63.02 kB / 380.1 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003795/0.3463, allocations: 150.8 kB / 380.2 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.3463, allocations: 19.41 kB / 380.2 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002435/0.3488, allocations: 2.284 MB / 382.5 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3488, allocations: 3.5 kB / 382.5 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.3508, allocations: 1.059 MB / 383.6 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/0.3513, allocations: 253.5 kB / 383.8 MB, free: 50.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.3515, allocations: 12.03 kB / 383.8 MB, free: 50.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.3519, allocations: 21.86 kB / 383.9 MB, free: 50.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.352, allocations: 47.3 kB / 383.9 MB, free: 50.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/0.3521, allocations: 22.83 kB / 383.9 MB, free: 50.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001355/0.3534, allocations: 0.8611 MB / 384.8 MB, free: 49.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3534, allocations: 0 / 384.8 MB, free: 49.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009891/0.3544, allocations: 372.1 kB / 385.2 MB, free: 49.75 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.0007961/0.3552, allocations: 455.3 kB / 385.6 MB, free: 49.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.3569, allocations: 0.8415 MB / 386.4 MB, free: 49.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3569, allocations: 0 / 386.4 MB, free: 49.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009754/0.3579, allocations: 0.5879 MB / 387 MB, free: 48.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000869/0.3588, allocations: 182.3 kB / 387.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.3632, allocations: 2.837 MB / 390 MB, free: 47.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.3639, allocations: 1.17 MB / 391.2 MB, free: 46.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006626/0.3645, allocations: 186.3 kB / 391.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3647, allocations: 82.41 kB / 391.5 MB, free: 46.39 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3647, allocations: 0 / 391.5 MB, free: 46.39 MB / 318.1 MB Notification: Performance of Templates: time 0.02233/0.387, allocations: 12.87 MB / 404.3 MB, free: 38.05 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)