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.001034/0.001034, allocations: 111.1 kB / 16.62 MB, free: 6.812 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.0009926/0.0009926, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.4 MB, free: 12.45 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.001154/0.001154, allocations: 48.3 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0811/0.08227, allocations: 46.64 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007433/0.08976, allocations: 7.308 MB / 333.4 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1004, allocations: 10.27 MB / 343.7 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009614/0.1014, allocations: 39.69 kB / 343.8 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.1032, allocations: 0.614 MB / 344.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003253/0.1065, allocations: 0.9876 MB / 345.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.1081, allocations: 0.5849 MB / 345.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003364/0.1115, allocations: 2.49 MB / 348.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.1119, allocations: 279.9 kB / 348.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.1124, allocations: 461.7 kB / 349.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.113, allocations: 0.5317 MB / 349.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.577e-05/0.1131, allocations: 52 kB / 349.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00175/0.1149, allocations: 0.6987 MB / 350.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.1151, allocations: 182.8 kB / 350.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006016/0.1157, allocations: 0.6754 MB / 351.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002045/0.1177, allocations: 1.927 MB / 353.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1178, allocations: 0 / 353.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1178, allocations: 4 kB / 353.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.1178, allocations: 0 / 353.2 MB, free: 9.551 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.002672/0.1205, allocations: 1.981 MB / 355.2 MB, free: 7.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1205, allocations: 12.03 kB / 355.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.1208, allocations: 194.6 kB / 355.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.1224, allocations: 1.341 MB / 356.7 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.1224, allocations: 37 kB / 356.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.564e-05/0.1225, allocations: 47.98 kB / 356.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008997/0.1234, allocations: 0.508 MB / 357.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1234, allocations: 0 / 357.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.778e-05/0.1235, allocations: 20 kB / 357.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.1235, allocations: 19.98 kB / 357.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008608/0.1244, allocations: 476 kB / 357.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.1271, allocations: 2.1 MB / 359.9 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.1281, allocations: 0.704 MB / 360.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007001/0.1288, allocations: 0.5174 MB / 361.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007548/0.1364, allocations: 6.509 MB / 367.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005928/0.137, allocations: 298.3 kB / 368 MB, free: 9.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.414e-06/0.137, allocations: 0 / 368 MB, free: 9.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003512/0.1405, allocations: 1.956 MB / 369.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.1406, allocations: 59.84 kB / 370 MB, free: 7.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.142, allocations: 1.296 MB / 371.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.1421, allocations: 33.7 kB / 371.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.1426, allocations: 0.7188 MB / 372 MB, free: 5.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1428, allocations: 201 kB / 372.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.1429, allocations: 122.2 kB / 372.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1431, allocations: 330 kB / 372.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.1435, allocations: 205.5 kB / 372.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.1439, allocations: 355.8 kB / 373.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002231/0.1462, allocations: 1.135 MB / 374.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1462, allocations: 4 kB / 374.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001526/0.1477, allocations: 0.9186 MB / 375.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1478, allocations: 12.03 kB / 375.3 MB, free: 2.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-05/0.1479, allocations: 56 kB / 375.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000387/0.1482, allocations: 167.8 kB / 375.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.1487, allocations: 107.9 kB / 375.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1373/0.286, allocations: 2.509 MB / 378.1 MB, free: 52.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/0.2867, allocations: 26.39 kB / 378.1 MB, free: 52.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.2868, allocations: 36.25 kB / 378.2 MB, free: 52.66 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.0004651/0.2872, allocations: 279.3 kB / 378.4 MB, free: 52.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.2874, allocations: 181.7 kB / 378.6 MB, free: 52.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.2891, allocations: 0.8853 MB / 379.5 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2891, allocations: 5.25 kB / 379.5 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2891, allocations: 6.688 kB / 379.5 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.2891, allocations: 7.344 kB / 379.5 MB, free: 52.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009173/0.2901, allocations: 0.866 MB / 380.4 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.74e-05/0.2901, allocations: 50.19 kB / 380.4 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.2904, allocations: 64.92 kB / 380.5 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003353/0.2908, allocations: 150.9 kB / 380.7 MB, free: 52.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.2908, allocations: 18.17 kB / 380.7 MB, free: 52.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.2928, allocations: 2.505 MB / 383.2 MB, free: 50.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2928, allocations: 1.281 kB / 383.2 MB, free: 50.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.2944, allocations: 1.06 MB / 384.2 MB, free: 49.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.2947, allocations: 253 kB / 384.5 MB, free: 49.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.2948, allocations: 7.609 kB / 384.5 MB, free: 49.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003338/0.2951, allocations: 28.88 kB / 384.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2952, allocations: 43.38 kB / 384.6 MB, free: 49.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.2953, allocations: 23.78 kB / 384.6 MB, free: 49.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008872/0.2962, allocations: 0.8591 MB / 385.4 MB, free: 49.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 0 / 385.4 MB, free: 49.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008058/0.297, allocations: 375.8 kB / 385.8 MB, free: 49.42 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.0006224/0.2976, allocations: 461.9 kB / 386.3 MB, free: 49.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.2991, allocations: 0.8565 MB / 387.1 MB, free: 48.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2991, allocations: 1.656 kB / 387.1 MB, free: 48.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008106/0.2999, allocations: 0.5775 MB / 387.7 MB, free: 48.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.3005, allocations: 190.5 kB / 387.9 MB, free: 48.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.3035, allocations: 2.836 MB / 390.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.3041, allocations: 1.17 MB / 391.9 MB, free: 46.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005567/0.3046, allocations: 190.2 kB / 392.1 MB, free: 46.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3048, allocations: 82.67 kB / 392.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3048, allocations: 0 / 392.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of Templates: time 0.02003/0.3248, allocations: 13.3 MB / 405.5 MB, free: 37.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)