Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009458/0.0009458, allocations: 196.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.6 MB / 244.3 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000783/0.000783, allocations: 95.88 kB / 296.4 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001953/0.0001954, allocations: 7.938 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1845, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.004262/0.1889, allocations: 6.58 MB / 414.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008548/0.1974, allocations: 9.831 MB / 423.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.1985, allocations: 39.69 kB / 423.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.2, allocations: 0.5516 MB / 424.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00291/0.2029, allocations: 0.9159 MB / 425.4 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.2043, allocations: 462.9 kB / 425.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002577/0.2069, allocations: 2.362 MB / 428.2 MB, free: 7.031 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003537/0.2073, allocations: 243.4 kB / 428.5 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.2077, allocations: 441.8 kB / 428.9 MB, free: 6.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000367/0.2081, allocations: 485 kB / 429.4 MB, free: 5.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.115e-05/0.2082, allocations: 31.94 kB / 429.4 MB, free: 5.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.2094, allocations: 0.6946 MB / 430.1 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.681e-05/0.2095, allocations: 143 kB / 430.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.2097, allocations: 324.8 kB / 430.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000905/0.2107, allocations: 1.39 MB / 431.9 MB, free: 3.262 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2107, allocations: 3.984 kB / 431.9 MB, free: 3.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2107, allocations: 0 / 431.9 MB, free: 3.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.2107, allocations: 4 kB / 431.9 MB, free: 3.254 MB / 298.7 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.001852/0.2126, allocations: 1.776 MB / 433.7 MB, free: 1.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2126, allocations: 8.031 kB / 433.7 MB, free: 1.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.2128, allocations: 201.6 kB / 433.9 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.2141, allocations: 1.275 MB / 435.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.2141, allocations: 33 kB / 435.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.2142, allocations: 48 kB / 435.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009166/0.2151, allocations: 0.5119 MB / 435.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2152, allocations: 0 / 435.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.857e-05/0.2152, allocations: 23.98 kB / 435.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.2152, allocations: 19.94 kB / 435.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009291/0.2162, allocations: 0.4921 MB / 436.3 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.219, allocations: 2.108 MB / 438.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009118/0.22, allocations: 0.7239 MB / 439.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006909/0.2207, allocations: 0.5367 MB / 439.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005304/0.226, allocations: 4.908 MB / 444.6 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005536/0.2265, allocations: 318 kB / 444.9 MB, free: 5.375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 6.833e-06/0.2266, allocations: 4 kB / 444.9 MB, free: 5.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004446/0.231, allocations: 2.453 MB / 447.4 MB, free: 2.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.2311, allocations: 63.78 kB / 447.4 MB, free: 2.762 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.2324, allocations: 1.276 MB / 448.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.2324, allocations: 37.7 kB / 448.7 MB, free: 1.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/0.2329, allocations: 0.6996 MB / 449.4 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.2331, allocations: 212.8 kB / 449.7 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.2331, allocations: 12 kB / 449.7 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.942e-05/0.2332, allocations: 330 kB / 450 MB, free: 196 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/0.2337, allocations: 233.5 kB / 450.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.2342, allocations: 360.5 kB / 450.6 MB, free: 15.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004869/0.2347, allocations: 274 kB / 450.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2347, allocations: 0 / 450.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001567/0.2362, allocations: 0.9858 MB / 451.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2363, allocations: 4 kB / 451.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.4e-05/0.2364, allocations: 68 kB / 451.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/0.2368, allocations: 182.1 kB / 452.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004164/0.2372, allocations: 107.8 kB / 452.2 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002921/0.2402, allocations: 2.525 MB / 454.7 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.2406, allocations: 36.03 kB / 454.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/0.2407, allocations: 31.94 kB / 454.8 MB, free: 11.21 MB / 330.7 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.0003703/0.241, allocations: 265.7 kB / 455 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.2412, allocations: 177.9 kB / 455.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/0.2431, allocations: 0.9992 MB / 456.2 MB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2431, allocations: 4 kB / 456.2 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2431, allocations: 4 kB / 456.2 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2431, allocations: 3.984 kB / 456.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000933/0.2441, allocations: 0.9133 MB / 457.1 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-05/0.2441, allocations: 56 kB / 457.2 MB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.2445, allocations: 75.88 kB / 457.3 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003982/0.2449, allocations: 175.5 kB / 457.4 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.2449, allocations: 24 kB / 457.4 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.2476, allocations: 2.511 MB / 460 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.2476, allocations: 7.891 kB / 460 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.2495, allocations: 1.201 MB / 461.2 MB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.2498, allocations: 254.9 kB / 461.4 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.2499, allocations: 15.95 kB / 461.4 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.2503, allocations: 31.97 kB / 461.5 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.85e-05/0.2504, allocations: 44.38 kB / 461.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-05/0.2504, allocations: 31.98 kB / 461.5 MB, free: 4.188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009323/0.2514, allocations: 0.8379 MB / 462.4 MB, free: 3.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2514, allocations: 0 / 462.4 MB, free: 3.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008032/0.2522, allocations: 387.8 kB / 462.8 MB, free: 2.98 MB / 330.7 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.0005901/0.2528, allocations: 428 kB / 463.2 MB, free: 2.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.2543, allocations: 0.9369 MB / 464.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2543, allocations: 0 / 464.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009734/0.2553, allocations: 0.6589 MB / 464.8 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007414/0.256, allocations: 202.2 kB / 465 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.2594, allocations: 2.823 MB / 467.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006544/0.26, allocations: 1.17 MB / 469 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.2602, allocations: 87.44 kB / 469 MB, free: 12.56 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2602, allocations: 0 / 469 MB, free: 12.56 MB / 346.7 MB Notification: Performance of Templates: time 0.02853/0.2887, allocations: 24.01 MB / 493.1 MB, free: 4.543 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)