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.001079/0.001079, allocations: 102.2 kB / 17.06 MB, free: 6.016 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.001139/0.001139, allocations: 195 kB / 18 MB, free: 5.094 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.39/1.39, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001194/0.001194, allocations: 47.94 kB / 327.9 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08546, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.1704/0.2559, allocations: 7.349 MB / 381.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.2659, allocations: 10.38 MB / 392.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000816/0.2668, allocations: 77.16 kB / 392.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.2683, allocations: 0.6954 MB / 393 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002774/0.2711, allocations: 1.164 MB / 394.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.2726, allocations: 0.6676 MB / 394.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003165/0.2758, allocations: 2.492 MB / 397.3 MB, free: 52 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004427/0.2763, allocations: 290.9 kB / 397.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006291/0.2769, allocations: 473 kB / 398 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005873/0.2775, allocations: 0.5295 MB / 398.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.19e-05/0.2776, allocations: 54.91 kB / 398.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.2793, allocations: 0.6983 MB / 399.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.2795, allocations: 183.4 kB / 399.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005636/0.28, allocations: 0.6774 MB / 400.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002457/0.2825, allocations: 1.942 MB / 402.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.2825, allocations: 5.688 kB / 402.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2825, allocations: 1.375 kB / 402.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.905e-05/0.2826, allocations: 0 / 402.1 MB, free: 13.86 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.003725/0.2863, allocations: 1.976 MB / 404.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.2864, allocations: 10.16 kB / 404.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.2867, allocations: 198.2 kB / 404.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.2887, allocations: 1.335 MB / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.2887, allocations: 30 kB / 405.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.033e-05/0.2888, allocations: 50.92 kB / 405.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.2899, allocations: 0.5138 MB / 406.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.2899, allocations: 0 / 406.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/0.2899, allocations: 19.44 kB / 406.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.29, allocations: 20.36 kB / 406.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.291, allocations: 475.4 kB / 406.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.2941, allocations: 2.098 MB / 408.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009933/0.2951, allocations: 0.698 MB / 409.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007419/0.2958, allocations: 0.5153 MB / 410.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008008/0.3038, allocations: 6.506 MB / 416.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005577/0.3044, allocations: 288.9 kB / 416.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.605e-06/0.3044, allocations: 3.938 kB / 416.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=59): time 0.003603/0.308, allocations: 1.96 MB / 418.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.3081, allocations: 61.34 kB / 418.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.3096, allocations: 1.291 MB / 420.2 MB, free: 352 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.3097, allocations: 36.61 kB / 420.2 MB, free: 312 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005944/0.3103, allocations: 0.719 MB / 420.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.3104, allocations: 201.7 kB / 421.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.3106, allocations: 117.9 kB / 421.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3107, allocations: 331.4 kB / 421.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004309/0.3112, allocations: 198 kB / 421.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.3117, allocations: 363.8 kB / 422.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/0.314, allocations: 1.139 MB / 423.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.314, allocations: 4 kB / 423.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001539/0.3156, allocations: 0.9172 MB / 424.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3156, allocations: 8 kB / 424.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.443e-05/0.3157, allocations: 63.98 kB / 424.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000399/0.3161, allocations: 156.2 kB / 424.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004675/0.3166, allocations: 111.8 kB / 424.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.3192, allocations: 2.513 MB / 427 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.3197, allocations: 28.03 kB / 427 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.3198, allocations: 35.94 kB / 427.1 MB, free: 9.301 MB / 350.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.0004287/0.3203, allocations: 281.6 kB / 427.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.3204, allocations: 185.8 kB / 427.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.3222, allocations: 0.8922 MB / 428.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3222, allocations: 4 kB / 428.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3223, allocations: 4 kB / 428.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3223, allocations: 3.984 kB / 428.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3233, allocations: 0.863 MB / 429.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.211e-05/0.3234, allocations: 59.98 kB / 429.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3237, allocations: 67.89 kB / 429.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.324, allocations: 145.5 kB / 429.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.224e-05/0.3241, allocations: 23.98 kB / 429.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002659/0.3268, allocations: 2.488 MB / 432.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3268, allocations: 7.969 kB / 432.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.3286, allocations: 1.061 MB / 433.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003897/0.329, allocations: 254.9 kB / 433.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.3292, allocations: 4 kB / 433.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/0.3295, allocations: 31.97 kB / 433.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3297, allocations: 44.39 kB / 433.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.3297, allocations: 23.98 kB / 433.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009762/0.3307, allocations: 0.8578 MB / 434.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3307, allocations: 0 / 434.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009548/0.3317, allocations: 375.8 kB / 434.7 MB, free: 1.41 MB / 350.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.0006851/0.3324, allocations: 465.3 kB / 435.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3339, allocations: 0.8399 MB / 436 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.334, allocations: 0 / 436 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000951/0.3349, allocations: 0.5868 MB / 436.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/0.3356, allocations: 187.9 kB / 436.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.339, allocations: 2.378 MB / 439.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007546/0.3397, allocations: 1.174 MB / 440.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.3402, allocations: 187.2 kB / 440.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.3403, allocations: 87.44 kB / 440.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3403, allocations: 0 / 440.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of Templates: time 0.02572/0.3661, allocations: 13.83 MB / 454.4 MB, free: 13.55 MB / 382.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)