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.008559/0.008559, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.001959/0.00196, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.367/1.367, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001122/0.001122, allocations: 49.53 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08292/0.08405, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007684/0.09178, allocations: 7.347 MB / 380.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.1041, allocations: 10.38 MB / 390.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.1056, allocations: 83.25 kB / 391 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001845/0.1075, allocations: 0.6984 MB / 391.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003754/0.1112, allocations: 1.169 MB / 392.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.1132, allocations: 0.6778 MB / 393.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00372/0.117, allocations: 2.482 MB / 396 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004476/0.1174, allocations: 287.9 kB / 396.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005598/0.118, allocations: 481.6 kB / 396.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005182/0.1185, allocations: 0.524 MB / 397.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.529e-05/0.1186, allocations: 56 kB / 397.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001645/0.1203, allocations: 0.6948 MB / 398 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1205, allocations: 186.8 kB / 398.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005652/0.121, allocations: 0.6831 MB / 398.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.123, allocations: 1.934 MB / 400.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.123, allocations: 4 kB / 400.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1231, allocations: 0 / 400.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.1231, allocations: 0 / 400.8 MB, free: 5.512 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.002743/0.1258, allocations: 1.973 MB / 402.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1259, allocations: 12.03 kB / 402.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1261, allocations: 198.6 kB / 403 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001794/0.1279, allocations: 1.341 MB / 404.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.1279, allocations: 29 kB / 404.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-05/0.128, allocations: 51.89 kB / 404.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009373/0.129, allocations: 0.508 MB / 404.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.129, allocations: 4 kB / 404.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.1291, allocations: 20 kB / 405 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.1291, allocations: 15.98 kB / 405 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009155/0.13, allocations: 472.1 kB / 405.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.1329, allocations: 2.088 MB / 407.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.134, allocations: 0.7041 MB / 408.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007074/0.1348, allocations: 0.5213 MB / 408.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007868/0.1426, allocations: 6.513 MB / 415.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005503/0.1432, allocations: 294.6 kB / 415.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.916e-06/0.1432, allocations: 0 / 415.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.003787/0.147, allocations: 1.963 MB / 417.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.1471, allocations: 55.84 kB / 417.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.1486, allocations: 1.3 MB / 418.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.1487, allocations: 33.7 kB / 418.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005722/0.1492, allocations: 0.7188 MB / 419.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1494, allocations: 193.2 kB / 419.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.1496, allocations: 122.2 kB / 419.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1497, allocations: 341.8 kB / 420.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004032/0.1501, allocations: 197.6 kB / 420.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005074/0.1507, allocations: 359.8 kB / 420.8 MB, free: 108 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/0.1529, allocations: 1.135 MB / 421.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.153, allocations: 4 kB / 421.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001611/0.1546, allocations: 0.9142 MB / 422.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1546, allocations: 8.625 kB / 422.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-05/0.1547, allocations: 60 kB / 422.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/0.1551, allocations: 164.6 kB / 423.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.1556, allocations: 115.8 kB / 423.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/0.1586, allocations: 2.517 MB / 425.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004958/0.1591, allocations: 27.98 kB / 425.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.267e-05/0.1592, allocations: 32 kB / 425.8 MB, free: 10.91 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.000517/0.1597, allocations: 281.5 kB / 426 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.1599, allocations: 181.8 kB / 426.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.1617, allocations: 0.8981 MB / 427.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1617, allocations: 4 kB / 427.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.1617, allocations: 4 kB / 427.1 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1617, allocations: 3.984 kB / 427.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.1628, allocations: 0.863 MB / 428 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.958e-05/0.1628, allocations: 51.94 kB / 428 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.1631, allocations: 67.94 kB / 428.1 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003641/0.1635, allocations: 152.8 kB / 428.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-05/0.1636, allocations: 23.97 kB / 428.3 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002679/0.1663, allocations: 2.482 MB / 430.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1663, allocations: 0 / 430.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.1682, allocations: 1.072 MB / 431.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003599/0.1686, allocations: 246.9 kB / 432.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.1687, allocations: 12 kB / 432.1 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.169, allocations: 15.98 kB / 432.1 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.1692, allocations: 56.31 kB / 432.2 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.236e-05/0.1693, allocations: 27.98 kB / 432.2 MB, free: 4.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001092/0.1703, allocations: 0.8539 MB / 433 MB, free: 3.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1704, allocations: 0 / 433 MB, free: 3.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009184/0.1713, allocations: 375.8 kB / 433.4 MB, free: 3.02 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.0007096/0.172, allocations: 460.1 kB / 433.9 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.1736, allocations: 0.8444 MB / 434.7 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1736, allocations: 0 / 434.7 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009316/0.1745, allocations: 0.5824 MB / 435.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007292/0.1753, allocations: 182.3 kB / 435.5 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.1789, allocations: 2.385 MB / 437.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000778/0.1797, allocations: 1.174 MB / 439 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000499/0.1802, allocations: 187.2 kB / 439.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.1803, allocations: 83.44 kB / 439.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of SimCode: time 5.52e-07/0.1803, allocations: 0 / 439.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of Templates: time 0.2007/0.381, allocations: 13.45 MB / 452.7 MB, free: 72.83 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)