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.006397/0.006397, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001213/0.001213, allocations: 197.2 kB / 16.67 MB, free: 5.93 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.353/1.353, allocations: 205.1 MB / 222.6 MB, free: 4.543 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.001202/0.001202, allocations: 45.41 kB / 326.5 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08876, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007395/0.0962, allocations: 7.355 MB / 380.5 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.1072, allocations: 10.39 MB / 390.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.1083, allocations: 75.31 kB / 391 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.11, allocations: 0.6983 MB / 391.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002826/0.1129, allocations: 1.176 MB / 392.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.1144, allocations: 0.6739 MB / 393.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003266/0.1177, allocations: 2.482 MB / 396 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004175/0.1181, allocations: 279.9 kB / 396.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000489/0.1186, allocations: 481.6 kB / 396.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005132/0.1191, allocations: 0.524 MB / 397.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-05/0.1192, allocations: 56 kB / 397.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.1206, allocations: 0.7026 MB / 398 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.1208, allocations: 182.8 kB / 398.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005727/0.1214, allocations: 0.6754 MB / 398.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001941/0.1233, allocations: 1.938 MB / 400.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1234, allocations: 4 kB / 400.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1234, allocations: 0 / 400.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.1234, allocations: 4 kB / 400.8 MB, free: 5.508 MB / 334.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.002638/0.126, allocations: 1.977 MB / 402.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1261, allocations: 8.031 kB / 402.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.1263, allocations: 198.6 kB / 403 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001814/0.1281, allocations: 1.341 MB / 404.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.1282, allocations: 29 kB / 404.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.814e-05/0.1283, allocations: 51.91 kB / 404.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009846/0.1293, allocations: 0.5119 MB / 404.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1293, allocations: 0 / 404.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/0.1293, allocations: 20 kB / 405 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.1294, allocations: 11.98 kB / 405 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009537/0.1303, allocations: 480 kB / 405.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.1332, allocations: 2.089 MB / 407.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1343, allocations: 0.7118 MB / 408.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007336/0.135, allocations: 0.5057 MB / 408.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00754/0.1426, allocations: 6.513 MB / 415.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005689/0.1432, allocations: 302.5 kB / 415.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.304e-06/0.1432, allocations: 0 / 415.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.003662/0.1468, allocations: 1.952 MB / 417.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.1469, allocations: 55.84 kB / 417.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.1484, allocations: 1.3 MB / 418.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1485, allocations: 41.69 kB / 418.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006621/0.1491, allocations: 0.715 MB / 419.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.1493, allocations: 201.1 kB / 419.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.1495, allocations: 122.2 kB / 419.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1496, allocations: 330 kB / 420.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.1501, allocations: 201.5 kB / 420.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.1506, allocations: 359.8 kB / 420.8 MB, free: 108 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/0.1529, allocations: 1.135 MB / 421.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1529, allocations: 4 kB / 421.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001623/0.1546, allocations: 0.9187 MB / 422.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1546, allocations: 11.94 kB / 422.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.125e-05/0.1547, allocations: 63.98 kB / 422.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.1551, allocations: 156.6 kB / 423.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/0.1555, allocations: 111.8 kB / 423.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.1584, allocations: 2.513 MB / 425.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004664/0.1589, allocations: 28.03 kB / 425.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.1589, allocations: 28.09 kB / 425.8 MB, free: 10.92 MB / 366.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.0004619/0.1594, allocations: 301.5 kB / 426.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.1596, allocations: 181.8 kB / 426.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.1613, allocations: 0.8824 MB / 427.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.1614, allocations: 4 kB / 427.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1614, allocations: 4 kB / 427.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.1614, allocations: 3.984 kB / 427.1 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009461/0.1623, allocations: 0.8591 MB / 428 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.537e-05/0.1624, allocations: 59.98 kB / 428 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.1628, allocations: 63.89 kB / 428.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003312/0.1631, allocations: 145 kB / 428.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.1631, allocations: 19.92 kB / 428.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.1658, allocations: 2.502 MB / 430.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1658, allocations: 4 kB / 430.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.1676, allocations: 1.061 MB / 431.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.1679, allocations: 250.9 kB / 432.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.168, allocations: 4 kB / 432.1 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.1684, allocations: 27.97 kB / 432.1 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.1685, allocations: 40.39 kB / 432.2 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.185e-05/0.1686, allocations: 27.98 kB / 432.2 MB, free: 4.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009908/0.1696, allocations: 0.8617 MB / 433 MB, free: 3.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1696, allocations: 3.938 kB / 433 MB, free: 3.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008878/0.1705, allocations: 367.8 kB / 433.4 MB, free: 3.027 MB / 366.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.0006963/0.1712, allocations: 464 kB / 433.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.1728, allocations: 0.8405 MB / 434.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1728, allocations: 0 / 434.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009553/0.1737, allocations: 0.5824 MB / 435.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006872/0.1744, allocations: 182.3 kB / 435.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.1778, allocations: 2.382 MB / 437.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006477/0.1784, allocations: 1.174 MB / 439 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.1789, allocations: 187.2 kB / 439.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.179, allocations: 83.44 kB / 439.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.179, allocations: 4 kB / 439.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of Templates: time 0.1904/0.3694, allocations: 13.46 MB / 452.7 MB, free: 72.8 MB / 382.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)