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.001116/0.001116, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.6 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008081/0.0008082, allocations: 95.03 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002293/0.0002293, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.19, allocations: 51.29 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00428/0.1944, allocations: 6.588 MB / 414.6 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007942/0.2023, allocations: 9.83 MB / 424.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008684/0.2032, allocations: 39.69 kB / 424.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.2046, allocations: 0.5477 MB / 425 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.2072, allocations: 0.9159 MB / 426 MB, free: 9.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2085, allocations: 466.8 kB / 426.4 MB, free: 9.312 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002894/0.2114, allocations: 2.366 MB / 428.8 MB, free: 6.941 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.2118, allocations: 260.3 kB / 429 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004725/0.2123, allocations: 429.8 kB / 429.5 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003605/0.2127, allocations: 493 kB / 429.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.96e-05/0.2128, allocations: 31.94 kB / 430 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.2142, allocations: 0.6985 MB / 430.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.2143, allocations: 155 kB / 430.8 MB, free: 4.871 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004364/0.2147, allocations: 0.6269 MB / 431.4 MB, free: 4.234 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009268/0.2157, allocations: 1.402 MB / 432.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2157, allocations: 7.984 kB / 432.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2157, allocations: 0 / 432.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.2157, allocations: 8 kB / 432.9 MB, free: 2.812 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.002042/0.2177, allocations: 1.756 MB / 434.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2178, allocations: 12.03 kB / 434.6 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.218, allocations: 194.6 kB / 434.8 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.2195, allocations: 1.337 MB / 436.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.2195, allocations: 40.94 kB / 436.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/0.2196, allocations: 43.91 kB / 436.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009042/0.2205, allocations: 0.5197 MB / 436.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.2206, allocations: 0 / 436.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.514e-05/0.2206, allocations: 19.98 kB / 436.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.2207, allocations: 15.94 kB / 436.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008808/0.2215, allocations: 496.1 kB / 437.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002848/0.2244, allocations: 2.116 MB / 439.4 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009204/0.2253, allocations: 0.7307 MB / 440.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007019/0.226, allocations: 0.5252 MB / 440.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005267/0.2313, allocations: 4.904 MB / 445.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005505/0.2319, allocations: 326 kB / 445.9 MB, free: 4.883 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 2.926e-06/0.2319, allocations: 3.938 kB / 445.9 MB, free: 4.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004421/0.2364, allocations: 2.46 MB / 448.3 MB, free: 2.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.2364, allocations: 55.84 kB / 448.4 MB, free: 2.273 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.2377, allocations: 1.28 MB / 449.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.2378, allocations: 33.7 kB / 449.7 MB, free: 0.957 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004965/0.2383, allocations: 0.7036 MB / 450.4 MB, free: 256 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.2384, allocations: 216.8 kB / 450.6 MB, free: 36 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.2385, allocations: 12 kB / 450.6 MB, free: 24 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2386, allocations: 334 kB / 451 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004173/0.239, allocations: 221.5 kB / 451.2 MB, free: 15.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.2395, allocations: 372.5 kB / 451.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009773/0.2405, allocations: 0.6268 MB / 452.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2405, allocations: 0 / 452.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001514/0.2421, allocations: 0.9812 MB / 453.1 MB, free: 13.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.2421, allocations: 4 kB / 453.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.057e-05/0.2422, allocations: 67.98 kB / 453.2 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000445/0.2426, allocations: 177.2 kB / 453.4 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/0.2431, allocations: 115.8 kB / 453.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002817/0.2459, allocations: 2.529 MB / 456 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004318/0.2463, allocations: 32.03 kB / 456.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.2464, allocations: 32 kB / 456.1 MB, free: 10.29 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.0004219/0.2468, allocations: 279.2 kB / 456.4 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.247, allocations: 181.8 kB / 456.5 MB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.2489, allocations: 0.9875 MB / 457.5 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.2489, allocations: 4 kB / 457.5 MB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2489, allocations: 8 kB / 457.5 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2489, allocations: 0 / 457.5 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009445/0.2499, allocations: 0.8978 MB / 458.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.451e-05/0.25, allocations: 71.92 kB / 458.5 MB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000295/0.2503, allocations: 71.95 kB / 458.6 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000401/0.2507, allocations: 179.2 kB / 458.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.2507, allocations: 12 kB / 458.8 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.2535, allocations: 2.519 MB / 461.3 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2535, allocations: 3.938 kB / 461.3 MB, free: 4.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.2554, allocations: 1.213 MB / 462.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003044/0.2557, allocations: 250.9 kB / 462.8 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.2559, allocations: 12 kB / 462.8 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.2562, allocations: 27.98 kB / 462.8 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.2564, allocations: 52.36 kB / 462.8 MB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.2564, allocations: 24 kB / 462.9 MB, free: 3.273 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.2575, allocations: 0.8379 MB / 463.7 MB, free: 2.445 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2575, allocations: 0 / 463.7 MB, free: 2.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008974/0.2584, allocations: 387.8 kB / 464.1 MB, free: 2.066 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.0007054/0.2591, allocations: 456.1 kB / 464.5 MB, free: 1.613 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.2607, allocations: 0.9407 MB / 465.5 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2607, allocations: 0 / 465.5 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000952/0.2617, allocations: 0.6511 MB / 466.1 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007848/0.2624, allocations: 208.3 kB / 466.3 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/0.2657, allocations: 2.82 MB / 469.1 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005961/0.2663, allocations: 1.17 MB / 470.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.2665, allocations: 87.42 kB / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2665, allocations: 0 / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of Templates: time 0.0271/0.2936, allocations: 24 MB / 494.4 MB, free: 3.613 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)