Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 94.95 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 193.6 kB / 17.91 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002061/0.0002062, allocations: 8 kB / 307.1 MB, free: 1.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08082/0.08104, allocations: 51.53 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00562/0.08668, allocations: 6.569 MB / 365.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.17/0.2567, allocations: 9.848 MB / 375 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008366/0.2576, allocations: 36.81 kB / 375.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.2592, allocations: 0.5472 MB / 375.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.262, allocations: 0.9174 MB / 376.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.2634, allocations: 462.7 kB / 377 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.2668, allocations: 2.368 MB / 379.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004001/0.2672, allocations: 245.3 kB / 379.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005757/0.2678, allocations: 435.5 kB / 380 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004858/0.2683, allocations: 490.7 kB / 380.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.064e-05/0.2684, allocations: 30.72 kB / 380.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.2701, allocations: 0.685 MB / 381.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2702, allocations: 152 kB / 381.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.2705, allocations: 318.5 kB / 381.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.2719, allocations: 1.397 MB / 383.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2719, allocations: 0 / 383.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2719, allocations: 5.719 kB / 383.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.2719, allocations: 0 / 383.1 MB, free: 7.113 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.002269/0.2742, allocations: 1.78 MB / 384.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2742, allocations: 10.31 kB / 384.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.2744, allocations: 194.5 kB / 385.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.2762, allocations: 1.271 MB / 386.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.2762, allocations: 33.31 kB / 386.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.305e-05/0.2763, allocations: 54.98 kB / 386.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009345/0.2772, allocations: 0.5132 MB / 386.9 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2773, allocations: 1.219 kB / 386.9 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.2773, allocations: 16.62 kB / 387 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.2773, allocations: 17.88 kB / 387 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000894/0.2782, allocations: 493.1 kB / 387.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.281, allocations: 2.119 MB / 389.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008644/0.2819, allocations: 0.7244 MB / 390.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00069/0.2826, allocations: 0.5251 MB / 390.8 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004769/0.2873, allocations: 4.914 MB / 395.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005293/0.2879, allocations: 324.3 kB / 396.1 MB, free: 420 kB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.076e-06/0.2879, allocations: 2.188 kB / 396.1 MB, free: 420 kB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004797/0.2927, allocations: 2.442 MB / 398.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.2928, allocations: 61.89 kB / 398.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.2942, allocations: 1.269 MB / 399.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.648e-05/0.2943, allocations: 36.58 kB / 399.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005662/0.2949, allocations: 0.702 MB / 400.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.295, allocations: 219.4 kB / 400.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.2951, allocations: 14.66 kB / 400.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2952, allocations: 335.7 kB / 401.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.2956, allocations: 225.1 kB / 401.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004879/0.2961, allocations: 365.9 kB / 401.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004817/0.2966, allocations: 277 kB / 402 MB, free: 12.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2966, allocations: 2.938 kB / 402 MB, free: 12.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001499/0.2981, allocations: 0.9774 MB / 402.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2982, allocations: 9.719 kB / 403 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-05/0.2983, allocations: 65.44 kB / 403 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/0.2987, allocations: 187.3 kB / 403.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.2991, allocations: 107.8 kB / 403.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/0.302, allocations: 2.521 MB / 405.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004725/0.3025, allocations: 35.94 kB / 405.9 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.3026, allocations: 32.88 kB / 405.9 MB, free: 9.625 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004379/0.303, allocations: 273.7 kB / 406.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.3032, allocations: 177.9 kB / 406.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/0.3052, allocations: 0.9922 MB / 407.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3052, allocations: 7.953 kB / 407.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3052, allocations: 8 kB / 407.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3052, allocations: 6.062 kB / 407.4 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.3063, allocations: 0.9118 MB / 408.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.659e-05/0.3064, allocations: 60 kB / 408.3 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.3067, allocations: 78.14 kB / 408.4 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.3071, allocations: 168.9 kB / 408.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.3072, allocations: 23.98 kB / 408.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/0.3099, allocations: 2.52 MB / 411.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3099, allocations: 3.938 kB / 411.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.312, allocations: 1.197 MB / 412.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003445/0.3123, allocations: 250.9 kB / 412.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.3125, allocations: 15.94 kB / 412.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/0.3128, allocations: 23.98 kB / 412.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.313, allocations: 56.31 kB / 412.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.753e-05/0.313, allocations: 20 kB / 412.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.314, allocations: 0.8457 MB / 413.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.314, allocations: 4 kB / 413.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001049/0.3151, allocations: 379.8 kB / 413.9 MB, free: 1.406 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007163/0.3158, allocations: 438.7 kB / 414.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.3175, allocations: 0.9305 MB / 415.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3175, allocations: 0 / 415.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009914/0.3185, allocations: 0.6554 MB / 415.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008444/0.3194, allocations: 205 kB / 416.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/0.323, allocations: 2.78 MB / 418.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006899/0.3237, allocations: 1.17 MB / 420.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005918/0.3243, allocations: 187.2 kB / 420.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.3244, allocations: 83.44 kB / 420.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3244, allocations: 0 / 420.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Templates: time 0.02438/0.3488, allocations: 13.17 MB / 433.5 MB, free: 13.8 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)